Share via

Display value based on text

Anonymous
2017-04-20T16:34:09+00:00

Hello,

I'd like to display a number based on text entered in the cell preceding it (all based on pre-populated cells from another sheet).   Ex: Sheet1 has 20 names in A1-A20 and their corresponding "number" in B1-B20 - all entered manually.  On Sheet2 I would like to be able to type a person's name in a random A cell and automatically have the person's value appear in the B cell next to it (according to their number in Sheet1).

Is this possible?  Any help is very much appreciated.  

Thank you.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-04-20T17:08:23+00:00

In B1 of Sheet2 enter this then copy down to B20

=IF(ISNA(VLOOKUP(A1,Sheet1!$A$1:$B$20,2,FALSE)),"",VLOOKUP(A1,Sheet1!$A$1:$B$20,2,FALSE))

Enter person name in Sheet2 column A

Gord

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2017-04-20T16:52:44+00:00

Hi, Assuming you enter the name in A1 in sheet2 in another cell enter

=index(sheet1!$B$1:$B$20,match(A1,sheet1!$A$1:$A$20,0))

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful