+ Reply to Thread
Results 1 to 4 of 4

Does VLOOKUP always look at first column in a range?

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Does VLOOKUP always look at first column in a range?

    I've attached a workbook which uses VLOOKUP to match a date to a value.

    The formula in VLOOKUP includes TODAY()-1 as the date which needs matching.

    I'm posting this question on 2/3/2019. If you look at the attached workbook you see that cell L11 has the formula I'm asking about.

    Since Today()-1 is currently 2/2/2019, the value in cell L11 should be some kind of error, since column A does not have any rows beginning with 2/2/2019.

    Any ideas on why I am getting a 1 instead of an error?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Does VLOOKUP always look at first column in a range?

    Because you did not add a parameter for an exact match in your VLOOKUP

    It should be =VLOOKUP(TODAY()-1,A6:L8,12,0)

    See https://support.office.com/en-us/art...8-93a18ad188a1 par 4

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: Does VLOOKUP always look at first column in a range?

    OK I understand. Thank you!

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Does VLOOKUP always look at first column in a range?

    Most welcome ( BTW IMO the INDEX/MATCH combination is much more robust and versatile)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 05-23-2018, 05:42 AM
  2. [SOLVED] Vlookup row to column in date range
    By Vandini.S in forum Excel General
    Replies: 11
    Last Post: 08-11-2015, 08:49 AM
  3. VBA VLookUp range moving down a row or across a column
    By relo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2015, 08:43 AM
  4. First column of range in VLOOKUP contains formula
    By er.diljeetsingh in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 05:19 AM
  5. Average over a text range using a vlookup In Column 2nd
    By Kenneth1024 in forum Excel General
    Replies: 6
    Last Post: 09-10-2010, 08:08 AM
  6. Re: Average over a text range using a vlookup In Column
    By Kenneth1024 in forum Excel General
    Replies: 4
    Last Post: 09-08-2010, 02:38 AM
  7. I want to vlookup from the rightmost column of the range
    By CENorth7272 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2005, 08:54 PM

Tags for this Thread

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