+ Reply to Thread
Results 1 to 4 of 4

Lookup Row and Column to make table

Hybrid View

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Birmingham, UK
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Lookup Row and Column to make table

    Hello All,

    I think this could be a simple one for someone out there.

    I'm looking for a formula that will return a value, dependant on matching both a column header and row header. I've attached an example spreadsheet that simplifies my data set. I currently have 3 Columns (X dist, Y dist, and Velocity at each point). I want to insert the data that I have in 3 columns, into more of a chart form with Y across the columns, and X down the rows. I'm looking for a formula that can be copied to the area in the chart to tell the cell to look up its corresponding header and row and return the value.

    I'll eventually be using this table to create a 3D column chart with the depth axis being Y.

    Excel Sample.xlsx

    I look forward to giving rep to the first person that helps me out with this one.

    All the best,
    D

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: Lookup Row and Column to make table

    In H4, enter the formula

    =INDEX($C:$C,SUMPRODUCT(($A$3:$A$22=$G4)*($B$3:$B$22=H$3)*(ROW($C$3:$C$22))))

    and copy down and accross to fill your table.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    02-16-2015
    Location
    Birmingham, UK
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Lookup Row and Column to make table

    Thanks for the reply.
    I've taken the formula you posted and tried to apply it to my actual spreadsheet (please find attached).

    It doesn't seem to be working. Maybe this has something to do with the fact that the master data is actually a filtered table?

    Have you any idea how to solve this? I'm after 'Point 2' across the top, and 'Point 1' down the rows, with the corresponding TI values in the middle of the table.

    Kind regards,
    D

    EXAMPLE_HELP!.zip

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: Lookup Row and Column to make table

    Your problem is that some of the referenced ranges have #DIV/0! errors which will error out the entire formula. You need to fix your formulas to not return errors, or use an array-entered formula like (pseudo formula)

    =INDEX(Range,MAX(IF(NOT(ISERROR(Rng1)),IF(Rng1=Crit1,IF(NOT(ISERROR(Rng2)),IF(Rng2=Crit2,ROW()))))))

+ 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. How to make a single column of data into a table
    By Apcal88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-17-2014, 06:13 PM
  2. [SOLVED] Lookup a value in column 3 of a table if criteria in column 1 and 2 are met
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 12:06 PM
  3. How to make SUM based on lookup table
    By eeman82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 02:07 PM
  4. [SOLVED] Lookup in 2nd column of a lookup table
    By Thistledown in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2012, 05:44 AM
  5. Replies: 6
    Last Post: 05-18-2010, 09:59 AM

Tags for this Thread

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