Why does Excel keep changing the format in my cells?

But you might run into problems if you are using that cell in a lookup formula. Even witht 0000 format, you’d see the leading zero, but the value would still be just 123. =VLOOKUP(“0123”, range, column, FALSE) would return #N/A