Results 1 to 17 of 17

Vlookup mixed with IF, looking at a date.

Threaded View

galvinpaddy Vlookup mixed with IF,... 06-26-2012, 01:53 PM
dilipandey Re: Vlookup mixed with IF,... 06-26-2012, 02:11 PM
ben_hensel Re: Vlookup mixed with IF,... 06-26-2012, 02:26 PM
galvinpaddy Re: Vlookup mixed with IF,... 06-26-2012, 05:23 PM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 05:30 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 05:49 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 05:53 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 05:58 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 06:00 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 06:13 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 06:41 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 07:00 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 07:03 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 07:07 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-27-2012, 07:51 AM
Fotis1991 Re: Vlookup mixed with IF,... 06-27-2012, 08:59 AM
galvinpaddy Re: Vlookup mixed with IF,... 06-28-2012, 07:05 AM
  1. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Vlookup mixed with IF, looking at a date.

    =VLOOKUP(value, matrix, num, TRUE) can be used on sorted arrays (such as you have here) to deliver the largest value that is less than or equal to the lookup... But that's not quite what you want, huh?

    I've built what I think you want using MATCH and INDEX with an IF... didn't actually use VLOOKUP, but that's just the way the cookie crumbled. (See attached).

    I used five cells, and then just stepped cell references backwards until I was only referring to sheet1!A1 and the array--and since sheet1A1 is just = TODAY(), you could replace those too, and feed this function just the array as the argument and it would automatically spit out what's closest to today. That might be pretty opaque to look at though, be warned.
    Attached Files Attached Files

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