+ Reply to Thread
Results 1 to 3 of 3

Complicated lookup - file attached

  1. #1
    Registered User
    Join Date
    06-17-2008
    Posts
    50

    Complicated lookup - file attached

    I know I'm crowding the forum, but I'm an intern who is learning a lot, so here we go.

    Attached is an income statement I am working on. I have minimized the data and changed the numbers in order to prevent myself from getting fired.

    As it shows, in columns B to I you can select which column you would like to analyze and compare to the other selections. Then, a simple hlookup function displays the appropriate operating expense based on what you have selected. But what I can’t get excel to do, is display the appropriate YTD % that also goes with the selection you make in the top row. It should make more since when you look at the file.

    For example, I know that what I want excel to do is… in cell C4 I want it to display whatever is in the column next to the column where the data in cell B4 was found. I know its confusing, hopefully it will make more since.
    Like I said, this is a minimized version. As the formulas in the yellow columns show, the original data extends to DM57.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    tRY:

    =INDEX($J$1:$DM$57,ROW(),MATCH($B$1,$J$1:$DM$1,0)+1)

    Copied down.

    Btw: You can also copy down your HLookup() formula, if you replace the hardcoded row number with the ROW() function...

    E.g. =HLOOKUP($B$1, $J$1:$DM$57, ROW(), FALSE) copied down.
    Last edited by NBVC; 06-25-2008 at 01:51 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    That did it, you are my hero.

+ 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