Custom Formatting of Numbers in a cel

music_al

Board Regular
Joined
Nov 26, 2008
Messages
133
Id like to format a cell that is the result of two other cells. There should always be 5 digits to the left of the / and 2 digits to the right of the / .


Cell1 Cell2 Cell3 (Result)
1234 1 01234/01
34567 2 34567/02


Thank you in advance

Al
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Does this work for you?

Code:
=TEXT(A1,"00000")&"/"&TEXT(B1,"00")
 
Upvote 0
Code:
=TEXT([B]RIGHT[/B](A3,5),"00000")&"/"&TEXT([B]LEFT[/B](B3,2),"00")

Very nice, I did not know this was possible Jazz
 
Upvote 0
No as I need the user to enter it as a continuous string of digits

But you said it was the result of 2 cells, not 1.

How is this not what you want?


Excel 2010
ABC
11234101234/01
234567234567/02
Sheet1
Cell Formulas
RangeFormula
C1=TEXT(A1,"00000")&"/"&TEXT(B1,"00")
C2=TEXT(A2,"00000")&"/"&TEXT(B2,"00")
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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