
Hi @Rayman Blackz,
Thank you for posting your question on Microsoft Q&A forum.
To format a 13-digit South African ID number in Excel as 000000 0000 000
, even when treated as text, you can use a formula or custom formatting:
Using a Formula
If your 13-digit number is in cell A1
, use this formula in another cell:
=LEFT(A1, 6)&" "&MID(A1,7,4)&" "&RIGHT(A1,3)
This breaks the number into three parts:
- First 6 digits
- Next 4 digits
- Last 3 digits
Using Custom Number Format
If the number is stored as a number (not text), you can apply a custom format:
- Select the cells.
- Right-click → Format Cells.
- Go to Number → Custom.
- Enter this format:
000000" "0000" "000
Note: If the number is stored as text (e.g., starts with zero), Excel won’t apply number formatting. In that case, use the formula method.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.