+ Reply to Thread
Results 1 to 9 of 9

Vlookup with Hlookup or Index with Match?

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    birmingham
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Vlookup with Hlookup or Index with Match?

    Morning all,

    I'm trying to gather information from a table and place it into another table with the same columns and row names.

    So how do I use vlookup and hlookup to find the exact cell and place it into the new blank table or should I use index and match.

    The reason I want to use this is because the columns in the data table could shrink, but I have the full table in the new blank table.

    For instance

    Header.

    B1 = 1
    C1 = 2
    D1 = 3

    Rows

    A2 = a
    A3 = b
    A4 = c

    Data

    b2 = 100
    b3 = 200
    b4 = 300
    c2 = 1
    c3 = 2
    c4 = 3
    d2 = 50
    d3 = 60
    d4 = 70

    I need a formula that would still grab column D's data even if column C was removed in the "data table" and place it into column D in the the new blank table - so the formula looks for the "rec id" in column A and looks across the headers for column D and places the data in the new table.

    Is this possible or have I just dreamed up something excel can't do?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Vlookup with Hlookup or Index with Match?

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    birmingham
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Re: Vlookup with Hlookup or Index with Match?

    hope this helps
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Vlookup with Hlookup or Index with Match?

    The structure which you shown in the sample file is seems to be arrived by applying Pivot Table. Instead of trying to use a formula in the Pivot Data use it with the Source Data of the Pivot.

    If possible show the source data for providing formula.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup with Hlookup or Index with Match?

    Just an idea...

    In C6 and copy down and across.

    =IFERROR(INDEX(BEFORE!$C$7:$J$15,MATCH($B6,BEFORE!$B$7:$B$15,0),MATCH(C$5,BEFORE!$C$6:$J$6,0)),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    01-28-2010
    Location
    birmingham
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Re: Vlookup with Hlookup or Index with Match?

    Quote Originally Posted by :) Sixthsense :) View Post
    The structure which you shown in the sample file is seems to be arrived by applying Pivot Table. Instead of trying to use a formula in the Pivot Data use it with the Source Data of the Pivot.

    If possible show the source data for providing formula.
    No.

    Thats not what I'm asking.

    The data has come from pivot table but they are pasted values out of them, i.e. create selection then paste out. The end product is to have the table in AFTER with the data from table BEFORE using a excel function.

  7. #7
    Registered User
    Join Date
    01-28-2010
    Location
    birmingham
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Re: Vlookup with Hlookup or Index with Match?

    So for instance i need, lookup row AFTER - find row in BEFORE, lookup column in AFTER, find column in BEFORE and then get the data from the cell - bit like battleships if you will.

  8. #8
    Registered User
    Join Date
    01-28-2010
    Location
    birmingham
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Re: Vlookup with Hlookup or Index with Match?

    Quote Originally Posted by Fotis1991 View Post
    Just an idea...

    In C6 and copy down and across.

    =IFERROR(INDEX(BEFORE!$C$7:$J$15,MATCH($B6,BEFORE!$B$7:$B$15,0),MATCH(C$5,BEFORE!$C$6:$J$6,0)),"")

    I think this actually works :D

    muchos kudos - need to test though with some live data

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup with Hlookup or Index with Match?

    ........................

+ 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, HLookup, Index, Match, oh my! Help me.
    By ryanl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 09:29 PM
  2. [SOLVED] hlookup, match or index?
    By Nathan1001 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-03-2013, 03:58 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