you can do Format Cell> Custom> 0000
which changes the appearance but not the reality (234 is still number 234)
or in another cell
=TEXT(A1, "0000"). this changes the value to text with the appropriate zeros.