+ Reply to Thread
Results 1 to 3 of 3

Index match and vlookups

  1. #1
    Forum Contributor
    Join Date
    06-14-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    186

    Index match and vlookups

    Hi,

    I am familiar with knowing how to use the INDEX MATCH formula and VLOOKUPS.
    However, I noticed I am not getting the desired result when working with dates.
    For example, say column A contains dates written like 25/11/2013, 01/06/2011, 23/10/2020.
    Column B has a header called "ID" it has a range of integer values like 6,34, 54,1,7,23 etc.
    Now, I want to find the ID(which is in column B) associated with the date(which is in column A).

    So, I was typing =INDEX("A1:C500",MATCH("25/11/2013",A:A,0),MATCH("ID",A1:C1,0))
    but I am getting #n/a when I can clearly see from my excel spreadsheet the ID linked to 25/11/2013 is 5.

    Any ideas?

    Thanks

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Index match and vlookups

    I suspect that you should use Date(2013, 11, 25) instead of "25/11/2013" in Match function. Try it and see if it works.

    If it doesn't, please upload sample workbook so I can see exactly what's stored in each cell (along with some manually created desired otuput).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: Index match and vlookups

    If "date" in column A is text format

    =INDEX(A1:C500,MATCH("25/11/2013",A:A,0),MATCH("ID",A1:C1,0))

    If "date" in column A is date value
    =INDEX(A1:C500,MATCH(DATE(2013,11,25),A:A,0),MATCH("ID",A1:C1,0))

+ 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. Index MATCH MATCH where I need 2 vlookups and 1 hlookup.
    By zhblack in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-02-2016, 03:30 PM
  2. Multiple Vlookups and index, match formula
    By alex_a in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-14-2015, 09:46 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. [SOLVED] Conditional Formatting and VLookups or Index (maybe)
    By blens1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-23-2014, 11:54 PM
  5. VLOOKUPS: When column index is variable, do what?
    By excelisfunsometimes in forum Excel General
    Replies: 1
    Last Post: 10-17-2011, 01:43 PM
  6. Index Formula Using Indirect Vlookups
    By amyxkatexx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2010, 10:55 PM
  7. Any way for 2 column vlookups. i.e match last name then match firs
    By CraigS in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2006, 08:35 PM

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