Format zeros not to truncate when concatenating two columns

gmryden

New Member
Joined
Jul 23, 2007
Messages
1
My goal is to take a date, 02/05/07 for instance, and reflect the data as 0205. I am able to break apart the 3 componets but when I conatenate the first two columns the leading zeros will truncate so my result is 25, or 205 instead of 0205. I can't seem to figure out how to make the zeros show regardless.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
hello gmryden, Welcome to MrExcel

Does 02/05/07 represent 2nd May or 5th Feb?

If the former then with date in A1

=TEXT(A1,"ddmm")

or for the latter

=TEXT(A1,"mmdd")
 
Upvote 0

Forum statistics

Threads
1,191,165
Messages
5,985,039
Members
439,935
Latest member
Monty238

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
Top