Reputation: 6645
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.
Upvotes: 1
Views: 441
Reputation: 59442
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.
Upvotes: 2