Date Format

goodmachine

Board Regular
Joined
Oct 7, 2009
Messages
70
I took a date that was in text format like so
Thu May 23 13:29:43 PDT 2013

<tbody>
</tbody>

and I used the Text to Columns function. I then concatenated the month, day, and year, and then added a slash, so the end result of the new data appears as May/23/2013.

Unfortunately, Excel does not recognize this format. How can I modify my new date so that Excel recognizes it so I can sort by the earliest date (the years vary).

Thanks,
goodmachine
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try this on the original data (before text to columns)
=(REPLACE(LEFT(A1,FIND(" ",A1,5)+2),1,4,"")&", "&RIGHT(A1,4))+0
 
Upvote 0
Another option after you have used the text-to-columns to separate the original data. Format cell G1 as a date.
Sheet9

*ABCDEFG
1ThuMay2313:29:43PDT20135/23/2013

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:30px;"><col style="width:33px;"><col style="width:21px;"><col style="width:57px;"><col style="width:31px;"><col style="width:35px;"><col style="width:68px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
G1=DATEVALUE(B1&" "&C1&", "&F1)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Hi JoeMo,

I tried your method, but I'm getting an error message. After using the Text to Columns function I get the following:

May2814:30:57PDT2013

<tbody>
</tbody>


When I use your formula, and then apply it to my cells, I get the following:


=DATEVALUE(D4&" "&E4&","&H4)

I appreciate the help.

Thanks,

goodmachine
 
Upvote 0
Hi JoeMo,

I tried your method, but I'm getting an error message. After using the Text to Columns function I get the following:

May2814:30:57PDT2013

<tbody>
</tbody>


When I use your formula, and then apply it to my cells, I get a #VALUE error with the following formula:


=DATEVALUE(D4&" "&E4&","&H4)

I appreciate the help.

Thanks,

goodmachine
 
Upvote 0
Hi JoeMo,

I tried your method, but I'm getting an error message. After using the Text to Columns function I get the following:

May2814:30:57PDT2013

<tbody>
</tbody>


When I use your formula, and then apply it to my cells, I get a #VALUE error with the following formula:


=DATEVALUE(D4&" "&E4&","&H4)

I appreciate the help.

Thanks,

goodmachine
 
Upvote 0
Hi JoeMo,

I tried your method, but I'm getting an error message. After using the Text to Columns function I get the following:

May2814:30:57PDT2013

<tbody>
</tbody>


When I use your formula, and then apply it to my cells, I get a #VALUE error with the following formula:


=DATEVALUE(D4&" "&E4&","&H4)

I appreciate the help.

Thanks,

goodmachine
Maybe you could tell me which of the cells you show are D4, E4 and H4? without that information I can only guess you are not entering the correct cells in the formula.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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