Text With a Date Calculation in Cell?

jdpro

Board Regular
Joined
May 1, 2016
Messages
88
Office Version
  1. 365
Platform
  1. MacOS
Greetings! 🖐️:)
I would like to calculate a date in a cell with text. What I have tried has not worked, because the date calculation returns the number rather than the date.
I4 has a date entered. If I subtract 60 from I4, I can get a date result. But if I would like to add some text, the date result is the date number rather than the formatted date.
In L6 I put: ="60 DTE: "&I4-60
which results in
60 DTE: 45647.
Is it possible to get the result to format for the date?

Screen Shot 2024-10-01 at 11.54.56 AM.png


Thank you very much!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Greetings! 🖐️:)
I would like to calculate a date in a cell with text. What I have tried has not worked, because the date calculation returns the number rather than the date.
I4 has a date entered. If I subtract 60 from I4, I can get a date result. But if I would like to add some text, the date result is the date number rather than the formatted date.
In L6 I put: ="60 DTE: "&I4-60
which results in
60 DTE: 45647.
Is it possible to get the result to format for the date?

View attachment 117547

Thank you very much!
="60 DTE: " & TEXT($I$4-60,"DD/MM/YYYY")
 
Upvote 1
Solution

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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