Display Double Digit Month & Day in =MONTH() & =DAY()

slam

Well-known Member
Joined
Sep 16, 2002
Messages
878
Office Version
  1. 365
  2. 2019
Is this possible?

I am extracting the year/month/date from a date, but I need it to display as 2 numbers, so April would be 04, but it's only returning 4

=(YEAR(C7))&""&(MONTH(C7))&""&(DAY(C7))

There will be a little more to the formula than this, so I can't just do a straight date format, but this is step 1, before adding the other parts.

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,218,267
Messages
6,141,458
Members
450,360
Latest member
heimlich

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