dashes needed excel 2016

CrashOD

Board Regular
Joined
Feb 5, 2019
Messages
118
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
i need
00901002409
as
009-01-002-409
with the preceding 0's
when i try

00901001122

<colgroup><col style="mso-width-source:userset;mso-width-alt:3986;width:82pt" width="109"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="width: 109"]00901001120[/TD]
[TD="class: xl63, width: 64"]=TEXT(G4,"???-??-???-???")
[/TD]

[TD="class: xl63"]=TEXT(G5,000-00-000-000)[/TD]

</tbody>
does not show me answer just the formula i put in

thanks so much
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Did you enclose the 0000s in a double quote

like =TEXT(G2,"000-00-000-000")
 
Upvote 0
Make sure that the cell is not formatted as text & that "Show Formulas" on the formula tab is not checked.
 
Upvote 0
Thanks so much!
by chance
00901002010
00901002011A
00901002012B
is there a way to have it fix it to
009-01-002-010
009-01-002-011-A
009-01-002-012-B

depending on what is there if a letter is there or not?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top