Need help with TEXT formula returning valid dates

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
Hello forum friends, I am trying to come up with a formula but I feel like I’m spinning my wheels just trying to get it started. What I need is a formula that will return a line of TEXT with two dates embedded in it. I would like the returned text to look like this:

Between September 23, 2018 and September 23, 2023

The two dates would be derived from another cell (E11) where the user had entered their birth date, in this case, September 23, 1958. The criteria would be that the dates returned would be the time period from when the user turned 60 years of age for the first date and 65 years of age for the second date.

And, if cell E11 is blank, the formula would return ‘Between mm/dd/yyyy and mm/dd/yyyy’ but without the quotes.

Any ideas much appreciated.

Thanks!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You need to use the TEXT function to format the dates as dates...

="Between "&TEXT($E$11,"mmmm d, yyyy")&" and "&TEXT(F11,"mmmm d, yyyy")

Note: You did not give a cell reference for the second date, so I used cell F11 for it.
 
Upvote 0
How about:

="Between " & IF(E11="","mm/dd/yyyy and mm/dd/yyyy",TEXT(EDATE(E11,12*60),"mmmm d, yyyy")&" and "&TEXT(EDATE(E11,12*65),"mmmm d, yyyy"))
 
Last edited:
Upvote 0
Many thanks to Rick and Dante, it appears that Dante's formula will be the one that works best for my purposes. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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