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

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  Register To Reply

2. ## 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.  Register To Reply

3. ## 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.  Register To Reply