Change text to date format.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
Is it possible to change text like,

[TABLE="width: 64"]
<tbody>[TR]
[TD]Apr 2017[/TD]
[/TR]
[TR]
[TD]FEB 2017[/TD]
[/TR]
[TR]
[TD]Feb 2017[/TD]
[/TR]
[TR]
[TD]To real dates?[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Are those in 2 different cells, like A1 is Apr and B1 is 2017 ?

Or both in 1 cell, seperated by a space? Try just =A1+0
 
Upvote 0
Thank you Jonmo1,
They both are in one cell.
Apr 2017
Mar 2017 etc.
I tried, but I got #Value! error.
 
Upvote 0
If =A1+0 gives a #Value! error, that means there is more in that cell than just the text shown.
Check it for leading/trailing spaces etc.

What does this return
=LEN(A1)
 
Upvote 0
Well it should be 8 right?
APR = 3
Space = 1
2017 = 4


So there's something else in there.
Try
=TRIM(A1)+0
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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