Home » excel » excel – How to reference cell on another sheet from cell value

excel – How to reference cell on another sheet from cell value

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have an Excel sheet something like the following:

  A  B     C
1 1  cat   4
2 2  dog   4
3 3  bird  2

On another sheet, I want to get the data for a row based on value in a cell, e.g. if A1 = 2 I want to display the name of the animal for row 2 on a particular cell (in this case, dog)

I’m trying to use =INDIRECT("Sheet1!'"&A1"') but it doesn’t work.

How to&Answers:

How about:

=VLOOKUP(A1,Sheet1!A1:C3,2)

Answer:

I suspect you are using Excel on a Mac and are trying to match a number formatted as a number against a number formatted as text. Try copying A1 from one sheet to the other, then:

=VLOOKUP(A1,Sheet1!A1:C3,2,FALSE) 

for animal name and change 2 to 3 for number of legs.