Combinig cells and getting date number instead of date

Carlos5

Board Regular
Joined
Jan 14, 2015
Messages
65
Hello,
I am using the following formula: ="Payroll (Start Date: " & Input!F1 & " End Date: " & Input!F2 & " ) "
The output is: Payroll (Start Date: 45732 End Date: 45745)
Is there a way to convert the date numbers to mm/dd/yy ?
Thank you,
 
Check the format of the cell and change it to what you need. Dates are floating point double data type IIRC, and 45732 is 3/16/2025. It represents the number of days since, I think, Dec. 31 1900 if you're not using 1904 option in Windows settings.
 
Upvote 0
It seems your data isn't formatted as date. Try this formula:

Excel Formula:
="Payroll (Start Date: " & TEXT(Input!F1, "mm/dd/yy") & " End Date: " & TEXT(Input!F2, "mm/dd/yy") & " ) "
 
Upvote 0
Solution
Check the format of the cell and change it to what you need. Dates are floating point double data type IIRC, and 45732 is 3/16/2025. It represents the number of days since, I think, Dec. 31 1900 if you're not using 1904 option in Windows settings.
Thank you, I changed the format of the cell but that did not work.
 
Upvote 0
Thank you, I changed the format of the cell but that did not work.
From what little I know about Excel, it would seem that once data is entered, changing the cell format won't always change the way it looks so you have to enter it again. If that's true, it's awfully bizarre.
 
Upvote 0

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