+ Reply to Thread
Results 1 to 7 of 7

V+HLOOKUP ...Can't use INDEX

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    V+HLOOKUP ...Can't use INDEX

    I'm trying to combing vlookup and hlookup.
    -Look across ROW2 to find the Ticker i'm looking for
    -Look down that SAME COLUMN to find a specific Option.

    Can't seem to use the 'INDEX(Yourtable,MATCH(Column),MATCH(Row))" solution I've seen around because there's no 'master y-axis' running down column A that applies to each row -

    Once i find the column (easy, HLOOKUP), I need to search for something specific to that Option in the column ...it's not in every other column

    Any ideas?
    Thanks folks.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: V+HLOOKUP ...Can't use INDEX

    Can u post sample workbook
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: V+HLOOKUP ...Can't use INDEX

    Not very clear... care to provide an example ?

    What is it you're looking to return from the range - if you're looking to simply return the row in which the "option" appears within the established column you could use:

    =MATCH(option,INDEX(YourTable,0,MATCH(Column,$2:$2,0)),0)

    the above returning the row within the specified column in which your "option" appears... using 0 in the INDEX essentially creates a Range of all rows in the table but for only a specific column - the MATCH then first against that resulting range... is that what you meant ?

  4. #4
    Registered User
    Join Date
    06-25-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: V+HLOOKUP ...Can't use INDEX

    see attached.
    Last edited by leechy; 06-25-2009 at 06:02 PM.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: V+HLOOKUP ...Can't use INDEX

    So without being able to test fully (given missing data etc...) you could try altering your range in the VLOOKUP from:

    Quotes!$G$5:$G300

    to

    INDEX(Quotes!$B$5:$G$300,0,MATCH($B8,Quotes!$B$2:$G$2,0))

    this way the range is still referencing rows 5:300 but only looks at the appropriate column as determined by code in B8

  6. #6
    Registered User
    Join Date
    06-25-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: V+HLOOKUP ...Can't use INDEX

    Thanks for the look folks

  7. #7
    Registered User
    Join Date
    06-25-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: V+HLOOKUP ...Can't use INDEX

    I'm still testing it, but i think it WORKS! IT WORKS!!! Thank you so much for this. Cheers.

+ Reply to Thread

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