Inserting dashes to an existing number

  • Thread starter Thread starter dinahrose
  • Start date Start date
D

dinahrose

Hi,

I am trying to create a formula that will divide this ten digit numbe
into the following dashes.

Here is the number 1234000999 I need the dashes to be inserted in thi
format 1234-000-999.


What is the appropriate formula.

Thanks for your help.
Dinahros
 
Why not just custom format
right click on selection>format>number>custom>
####-###-###
 
Hi
in addition to Don if you need a formula try:
=TEXT(A1,"0000-000-000")
in an adjacent cell
 
Custom format is the simplest but if you really need to add the - the
try this

=LEFT(a1,4)&+"-"&+MID(a1,5,3)&+"-"&+RIGHT(a1,3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top