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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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