+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP to find value equal to or less than

  1. #1
    Registered User
    Join Date
    10-31-2010
    Location
    Oklahoma City
    MS-Off Ver
    Excel 2007/2010
    Posts
    41

    VLOOKUP to find value equal to or less than

    My students record the daily temperature as an ongoing class project. We are using VLOOKUP(32, Jan!B2:C32,2,FALSE) to find out the first time the temp drops to 32 or below each month (lookup formula changes). The problem is that the function only locates the date that we hit 32, sometimes our temp may fall below that before we record a day with 32. Is it possible to use VLOOKUP or do I need to try something new?

    Thank you
    Brenda
    Last edited by Brenda42; 11-28-2010 at 06:53 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP to find value equal to or less than

    =index(jan!c2:c32,match(true,index(jan!b2:b32<=32,0),0)) mind you no days with blanks or they get treated as 0 and that's the day you'll get but you can put "n/a" or something like "no reading taken " instead
    eg see attached
    Attached Files Attached Files
    Last edited by martindwilson; 11-28-2010 at 06:33 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-31-2010
    Location
    Oklahoma City
    MS-Off Ver
    Excel 2007/2010
    Posts
    41

    Re: VLOOKUP to find value equal to or less than

    Your genius inspires me! It works great, can I ask for you to briefly explain the details?

    Thank you
    Brenda

  4. #4
    Registered User
    Join Date
    10-31-2010
    Location
    Oklahoma City
    MS-Off Ver
    Excel 2007/2010
    Posts
    41

    Re: VLOOKUP to find value equal to or less than

    I think I figured it out! Thanks agian for the help.

    Brenda

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1