+ Reply to Thread
Results 1 to 13 of 13

Using and INDEX and MATCH in Vlookup for col_index_num??

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Using and INDEX and MATCH in Vlookup for col_index_num??

    Hi,

    In the simple spreadsheet attached i have a vlookup looking 4 columns across to pull the data for the 25/10/14.
    Instead of having the number 4 there is it possible to replace it with a Index and match function so say i type the date 26/10/14 in A1 it will pull the result of 8 back??

    If so how?!?

    Many thanks in advance!
    Tom.

    EDIT:
    I dont think i was very clear in the first instance. I have attached a new file (test 3). What i am looking to be able to do is change the date in A1 to pull in the data for that date in the summary below using a lookup table. Thanks.
    Attached Files Attached Files
    Last edited by tompee29; 10-24-2014 at 08:34 AM.

  2. #2
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    Hi There,

    Your sheet isn't saying what your message is. What cell do you want the formula in, what reference do you want it to look up and what output do you want the formula to display?

    The index and match is easy, I just need to know where the data is relative to everything else on the sheet. Thanks

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    does this work for you?

    =+VLOOKUP(D11,D6:M6,HLOOKUP(A1,E4:M6,3),FALSE)
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    hmmm, i like that but it doesnt work

  5. #5
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    Hiya.

    sorry if i wasnt clear...

    so the formula in F11, what would be in place of the 4 if i wanted to index and match it to the date instead based on a date in A1?? Does that make sense?

    so if i put the date 25/10/14 in A1 it would return the value 4 in F11. If i put the date of 26/10/14 in A1 it would return 8 in cell F11.

    Hope that makes sense....

    Apologies if not.

    Cheers,
    Tom.

  6. #6
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    It only works if you enter 25/10/14, if you enter any other date it gives random answers or #REF!

  7. #7
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    Aah, gotcha!

    Formula: copy to clipboard
    =INDEX(E6:M6,1,MATCH(A1,E4:M4,0))


    Try that

  8. #8
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    ahaa... perfect, your a legend, thank you!!!

  9. #9
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    Hmm, it works OK in the attached file? Have a play and let me know.

    Thanks
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    no, sorry, that was a reply to judgeh59, sorry... not sure what i am doing on this... yours worked, thanks again.

  11. #11
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    Quote Originally Posted by TPDave View Post
    Hmm, it works OK in the attached file? Have a play and let me know.

    Thanks
    In fact it doesnt do what i need it to do It needs to reference the 10 in D11 because i am going to be looking the 10 up in a much larger range not just D6:M6.

    So needs to be a match and index inside a lookup or i guess a hlookup inside a vlookup?

  12. #12
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    sorry just a bit confused....the HLOOKUP version worked?

  13. #13
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Using and INDEX and MATCH in Vlookup for col_index_num??

    sorry, no didnt work?

+ 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. VLOOKUP variable col_index_num
    By Soltisolti in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2014, 06:08 AM
  2. Changing Col_Index_Num using Vlookup
    By 12.kunal@gmail.com in forum Excel General
    Replies: 3
    Last Post: 01-11-2012, 11:27 AM
  3. ===How to Col_index_num in Vlookup===
    By advectorz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2008, 11:12 AM
  4. Vlookup Col_index_num
    By Mort Australia in forum Excel General
    Replies: 5
    Last Post: 03-24-2006, 06:40 AM
  5. [SOLVED] Variable col_index_num in vlookup
    By Hugh Murfitt in forum Excel General
    Replies: 1
    Last Post: 02-15-2006, 08:20 AM

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