+ Reply to Thread
Results 1 to 3 of 3

Pulling data from a cell location based upon two inputs /axis choices in a data table

  1. #1
    Registered User
    Join Date
    02-23-2009
    Location
    Salem, Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Pulling data from a cell location based upon two inputs /axis choices in a data table

    Hello all.

    Please see the attached .xls file. You will see the table of data. I want to be able to enter values into two fields, and have a corresponding value appear in a third field. For example, if my x-value is '6' and the y-value is '63', the corresponding value that will appear in the 'output' cell is "24.45%"

    How can I implement this into my spreadsheet, so that I can I get an output of any cell in the data table by inputting the two corresponding "axis values"

    Thank you
    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

    Re: Pulling data from a cell location based upon two inputs /axis choices in a data t

    Try:

    =INDEX($C$9:$K$24,MATCH(B28,$B$9:$B$24,-1),MATCH(B29,$C$8:$K$8))

    where B28 is your vertical lookup value and B29 is your horizontal lookup value.

    Change as necessary.

    This assumes that the table you show is the table you are working with and that you have consecutive numbers like that in the column and row headers... If not, you will need to revise the Match() parts replacing the -1 with a 0 in the first Match() and adding a 0 argument to the second match... which is safer (because it looks for exact match), but is supposedly less efficient..then approximate match search.
    Last edited by NBVC; 02-23-2009 at 04:46 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
    01-02-2007
    Posts
    12

    Re: Pulling data from a cell location based upon two inputs /axis choices in a data t

    Assuming your "X" values are as shown, this works-
    =VLOOKUP(D4,B8:K24,D3+1,FALSE)
    It may be less robust and flexible than some other solutions, but it works well with the data presented.

+ 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