Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given a two-dimensional table with row and column headers, like this:

enter image description here

What is the formula to return the value at the intersection of a particular row and column? For example, I want a formula that would take "Blue" and 180 and return $2.20 in this case.

share|improve this question
up vote 4 down vote accepted

returns $2.20.

share|improve this answer
Thanks! By naming the column headers "ColHeaders", the row headers "RowHeaders", and the data area "Data", I was able to write this as =INDEX(Data,MATCH(180,RowHeaders,0),MATCH("Blue",ColHeaders,0)) – Joel Spolsky Jul 28 '11 at 18:19
Important to remember the non-optional third argument to MATCH which must be 0 for an exact match – Joel Spolsky Jul 28 '11 at 18:20
@Joel Spolsky: You're more than welcome. – Mehper C. Palavuzlar Jul 28 '11 at 19:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .