Share via

I have a column of numbers (ex. 123456) that I want to convert to the following format 12-34-56. Is there an easy way to do this?

Anonymous
2025-04-14T19:34:03+00:00

i have a column of numbers (ex. 123456) that I want to convert to the following format 12-34-56. Is there an easy way to do this?

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

triptotokyo-5840 36,686 Reputation points Volunteer Moderator
2025-04-14T20:06:06+00:00

i have a column of numbers (ex. 123456) that I want to convert to the following format 12-34-56. Is there an easy way to do this?

Assuming that your Column Of Numbers are indeed numbers and not text then:-

 - highlight the cells you want to change

 - CTRL + 1 to open the window called Format Cells

 - then format the required cells as shown in the image below i.e. ##-##-##

 ![](https://learn-attachment.microsoft.com/api/attachments/403d7894-bc44-46a9-886a-44df676a52fd?platform=QnA

Was this answer helpful?

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2025-04-14T19:56:48+00:00

If it is for display purposes only, apply the custom number format 00-00-00 to the cells.

If you want the values as text: let's say your numbers are in B2:B50.

In C2, enter the formula =TEXT(B2:B50, "00-00-00")

This will spill to C2:C50.

If you want to get rid of the formulas, copy C2:C50, then paste as values.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful