The issue with colons in Excel number formats is that Excel reserves the colon (:) as a special character for time formatting. When you use colons in a custom number format, Excel interprets it as a time format rather than a general numeric display format.
In time formats, Excel expects the values to follow time conventions (hours, minutes, seconds), so it applies specific rules and constraints. For example, it expects minutes and seconds to be between 0-59, and it may convert or validate the input according to time logic rather than treating it as a simple display format.
Here are a few solutions you can try:
Option 1: Use a different separator
As you've discovered, spaces (0 00 00) or hyphens (0-00-00) work fine since these aren't reserved time characters.
Option 2: Force text interpretation
You could use a format like @ to treat the cell as text, but then you'd need to enter your data in the exact format you want displayed.
Option 3: Use a formula approach
If you need the colon format specifically, you could enter your data in one column and use a formula in another column to format it with colons. For example, if your data is in cell A1 as a 6-digit number like 123456, you could use:
=LEFT(A1,1)&":"&MID(A1,2,2)&":"&RIGHT(A1,3)
Option 4: Custom formatting with escape
Sometimes you can escape special characters in number formats using a backslash, but this doesn't typically work reliably with colons in Excel.
The space or hyphen separators are probably your most straightforward solution if the colon isn't absolutely necessary for your use case.