Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In Excel or OpenOffice calc I have

| Foo | Bar |
| A   | 1   |
| B   | 2   |

Is it possible to use VLOOKUP to search a value in the Bar column and return the value in the Foo column?

share|improve this question
No it isn't, which is why Jook's answer doesn't use it. VLOOKUP can only use the left hand column. – AndrewC Sep 28 '12 at 5:58
up vote 7 down vote accepted

Try this solution:


This chooses a specific cell out of a matrix.

MATCH retrieves the row inside the matrix B:B where "2" was found with exact match (0).

INDEX uses this row, and a given column (1), to refer to a specific cell inside a matrix A:B.

"Foo" would be in column A, "Bar" would be column B.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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