Compare the entry you typed with the value shown after pressing Enter. A code like 0037 may become 37 when the cell treats it as a number.
Illustration: the displayed numeric value has dropped the code’s leading zeros.
Set an empty column to text before entering codes. Type one from the original list and move to the next cell.
Check that all four characters remain. Recover missing zeros from the original records before using the column to match people or supplies.