Concatenating and Keeping an Input Mask

MrT82

Board Regular
Joined
Dec 12, 2005
Messages
84
Hi All,

I have a spreadsheet where I have the following cells:

FD 05 00181

I have used an input mask in order that the 05 column is always two digits long and the 00181 column is always five digits long.

When I concatenate the cells, I end up with FD/5/181… does anyone know how I can make it in order that the concatenated cell is FD/05/00181.

Thanks,

Paul
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Custom formatting only changes the appearance of cells, not what is actually contained in them.

You can use the TEXT command to do what you want, i.e. if your values are in cells A1, B1, and C1, try:

=A1 & "/" & TEXT(B1,"00") & "/" & TEXT(C1,"00000")
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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