Excel formula to find a label corresponding to a code
Youbert
Posted messages
8
Status
Membre
-
Raymond PENTIER Posted messages 58546 Registration date Status Contributeur Last intervention -
Raymond PENTIER Posted messages 58546 Registration date Status Contributeur Last intervention -
Hello,
In one Excel sheet, I have a list of codes (column A) corresponding to names (column B).
In another sheet, I have the same codes in column A and columns C, D, E... with other data. Column B is empty, and I would like to enter a formula so that the labels corresponding to the codes appear in this column.
Example
Sheet 1 column A: 75 / column B: PARIS.
Sheet 2 column A: 75 / column B is empty.
I would like to know the formula to make PARIS appear in column B of sheet 2.
Thank you.
In one Excel sheet, I have a list of codes (column A) corresponding to names (column B).
In another sheet, I have the same codes in column A and columns C, D, E... with other data. Column B is empty, and I would like to enter a formula so that the labels corresponding to the codes appear in this column.
Example
Sheet 1 column A: 75 / column B: PARIS.
Sheet 2 column A: 75 / column B is empty.
I would like to know the formula to make PARIS appear in column B of sheet 2.
Thank you.
4 réponses
Hi.
I just looked at your file. Preliminary questions:
--
Retirement is great! Especially in the West Indies ... :-)
Raymond (INSA, AFPA, CF/R)
I just looked at your file. Preliminary questions:
- What is the purpose of the comments (identical to the content of the cell) in the first row of each sheet?
- Why didn’t you try to write the formula based on the two tutorials I sent you the link to, and the formula whose syntax I indicated? I would have preferred to correct an incorrect formula rather than do everything for you ...
--
Retirement is great! Especially in the West Indies ... :-)
Raymond (INSA, AFPA, CF/R)
Simply, to ensure that when copied down the range is not altered, you just need to take the precaution of replacing A2:B99 with A$2:B$51.
And if you had defined the name "matrix" for the range Sheet1!A2:B51, the formula in the entire column Sheet2!B:B would have been =VLOOKUP(A:A;matrix;2;0)
https://www.cjoint.com/c/EJAuDTEUacz
I encourage you to read, understand, and apply the two tutorials from my post #1