+ Reply to Thread
Results 1 to 5 of 5

Index, Match, Vlookup, Hlookup help needed

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    6

    Post Index, Match, Vlookup, Hlookup help needed

    Hi

    I'm trying to look up a horizontal value then return one of the cells in that column dependant on a vertical lookup, i've tried Index, match, vlookup & hlookup but only seem to be able to restrict the formula by specifying the column I want the vlookup to occur against. Is there a way of building the formula to have a bit more flexibility so that its not depentant on my stating only look up in column B (for example)? The sheet the data is coming from is something users will paste their data into so i cannot predict which column my summary should be against.

    I need to compare two data sets on the same sheet for various companies. Attached is what i'm looking for.

    I used the below

    =INDEX($B$2:$D$5,MATCH(A10,$A$2:$A$5,0),0)
    =INDEX($B$1:$D$1,MATCH(B10,INDEX($B$2:$D$5,MATCH(A10,$A$2:$A$5,0),0),1))

    but these specify a column rather than looking up the column header.

    can anyone help?

    Thanks Example Data.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index, Match, Vlookup, Hlookup help needed

    In B5

    =INDEX('DATA SET 1'!$B$2:$F$6,MATCH($A5,'DATA SET 1'!$A$2:$A$6,0),MATCH($B$2,'DATA SET 1'!$B$1:$F$1,0))
    Copy down

    In B15
    =INDEX('DATA SET 1'!$B$2:$F$6,MATCH($A15,'DATA SET 1'!$A$2:$A$6,0),MATCH($B$12,'DATA SET 1'!$B$1:$F$1,0))
    Copy down

    Adjust for DATA SET 2
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Index, Match, Vlookup, Hlookup help needed

    brilliant, thank you so much!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Index, Match, Vlookup, Hlookup help needed

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    11-08-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Index, Match, Vlookup, Hlookup help needed

    apologies for the delay in coming back

    thank you for the info, i will ensure i follow them going forward

+ 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 with Hlookup or Index with Match?
    By brad_x81 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2013, 06:40 AM
  2. Vlookup, HLookup, Index, Match, oh my! Help me.
    By ryanl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 09:29 PM
  3. Vlookup/hlookup/match/index?
    By margggggg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 07:46 PM
  4. [SOLVED] Search in Table vlookup / Hlookup or INDEX - MATCH command
    By dalaie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-13-2012, 07:42 AM
  5. [SOLVED] Vlookup & Hlookup at same time - Why is this Index+Match formula not working
    By fabrice.usa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2012, 06:46 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