8

I have a spreadsheet in Google Docs like this:

           Johan    Mark    Gil    Pablo

Course 1      45      50     80       50
Course 2     250     300     50      270
Course 3      19      50     29       15
Course 4     270     250    250      250
Course 5       5       5     11       50
Course 6      45     250    250       17

I would like to retrieve the content of a cell given a column and a row headers.

The example here shown: the column header is "Pablo" and the Row header is "Course 3".

What's the function that retrieves the content of the cell in the matrix? (Resulting value should be "15".)

7

This will work, based on a table with upper-left corner in A1, modify to suit actual:

=INDEX(A1:E7, MATCH("Course 3", A:A, 0), MATCH("Pablo", 1:1, 0))
  • It works very well ! Many Thanks! :-) – user12248 Jul 18 '11 at 10:13
  • 2
    @pnuts, I agree, hardcoding isn't the best way. – Lance Roberts Jun 18 '14 at 2:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.