How do I change date from serial number if it combined in a cell with other numbers/text?

codys21

New Member
Joined
Jun 12, 2015
Messages
19
I have a formula that includes text and a date, but Excel gives me the date in its serial number format (which I expected) but I don't know how to go about changing that when it is in a cell with other characters.



Here is my formula:

=IF(X9="","",IF(X9<1,"0% vested",IF(AND(X9>1,X9<2),"25% vested on " & DATE(YEAR(B9)+1,MONTH(B9),DAY(B9)),IF(AND(X9>2,X9<3),"50% vested on " & DATE(YEAR(B9)+2,MONTH(B9),DAY(B9)),IF(X9>3,DATE(YEAR(B9)+3,MONTH(B9),DAY(B9)),"Not 100% vested")))))



and the result:

50% vested on 37817



I would like it to say "50% vested on 7/15/2003" or something of that nature.



Thanks for the help!

Cody


 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You have to apply the text function to your dates in the concatenation
So this bit
"25% vested on " & DATE(YEAR(B9)+1,MONTH(B9),DAY(B9))

Would change to
"25% vested on " & TEXT(DATE(YEAR(B9)+1,MONTH(B9),DAY(B9)),"m/d/yyyy")
 
Upvote 0
You have to apply the text function to your dates in the concatenation
So this bit
"25% vested on " & DATE(YEAR(B9)+1,MONTH(B9),DAY(B9))

Would change to
"25% vested on " & TEXT(DATE(YEAR(B9)+1,MONTH(B9),DAY(B9)),"m/d/yyyy")


Thank You! That was quite simple!
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,851
Members
449,471
Latest member
lachbee

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