+ Reply to Thread
Results 1 to 4 of 4

Horizontal and Vertical lookup.

  1. #1
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Horizontal and Vertical lookup.

    I am trying to figure out how to fill in the second table with the numbers in the first table only if the vertical and horizontal date headings match. If they do not match then either leave blank or add zero. I think this is somewhat like a vertical and horizontal combination lookup. Any thoughts on how to solve this. Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Horizontal and Vertical lookup.

    I presume the first table was created by a pivot table?
    If so, the second one should be easy enough to populate directly from the raw data using formulas.

    To show you how, I'd need to see the raw data.
    If I've been of help, please hit the star

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Horizontal and Vertical lookup.

    Please Login or Register  to view this content.
    Add this in the D18 Cell then copy into the Cells with # in their header. (where $B18 is the date to the left & D16 is the date at the top)

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Horizontal and Vertical lookup.

    in D18
    =IF(ISNA(INDEX($C$2:$N$11,MATCH($B18,$B$2:$B$11,0),MATCH(D$16,$C$1:$M$1,0))),"",INDEX($C$2:$N$11,MATCH($B18,$B$2:$B$11,0),MATCH(D$16,$C$1:$M$1,0)))

    copy down and across to AC30
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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