+ Reply to Thread
Results 1 to 4 of 4

Thread: lookup formula in a Table given row and column

  1. #1
    Registered User
    Join Date
    10-15-2011
    Location
    scranton pa
    MS-Off Ver
    Excel 2007
    Posts
    8

    lookup formula in a Table given row and column

    I need a formula to return a value in a chart based on matching the headings. I am sure something simple is out there.

    Please see that attached:
    I would like to add a formula in C2. I would like this formula to look at A2 and B2 and then return the value from the chart next to it.

    for example: if A2= 1 Gallon and B2= 3 then the formula in C2 will give me "3"

    thank you for your help
    Attached Files Attached Files
    Last edited by sciartilli; 10-15-2011 at 11:40 PM.

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,274

    Re: Looking for Formula- please help

    Hi sciartilli and welcome to the forum,

    If you would, please click on the green Edit button below your original post and rename this thread to a more specific name like: "Lookup formula in a Table given row and column". Your thread title is a little too vague to find it again.

    Then try this formula in C2 and pull it down.
    =INDEX($G$2:$R$13,MATCH(A2,$F$2:$F$13,0),B2)
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  3. #3
    Registered User
    Join Date
    10-15-2011
    Location
    scranton pa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Looking for Formula- please help

    wow!!! thank you so much.... 1st post and I recieved an answer in 5 mins. very impressed.

  4. #4
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,274

    Re: lookup formula in a Table given row and column

    If you didn't have numbers in your column titles you would need another match function in the formula.

    See the attached with a little more complicated formula.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

+ 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.2.0