Microsoft
Software
Hardware
Network
Question : Looking for Excel User Function not Text to Columns to Convert text values to date values.
Need Excel User Function to Convert Tuesday, June 08, 2010 3:16 PM to mm/dd/yy
These are coming from text files that I cannot change the format of the dates.
Here are sample values and what they need to become:
Tuesday, June 08, 2010 3:16 PM 6/08/10
Friday, March 12, 2010 5:39 PM 3/12/10
Wednesday, April 14, 2010 2:01 PM 4/14/10
Friday, May 14, 2010 12:03 PM 5/14/10
I have already received an answer using Text to Columns, but a user function would be much better for the people and spreadsheets i am working with.
Answer : Looking for Excel User Function not Text to Columns to Convert text values to date values.
Assuming your date is in C11 enter in another cell:
=DATEVALUE(TRIM(LEFT(
RIGHT(C11,
LEN(C11)-F
IND(",",C1
1)-1),FIND
(":",RIGHT
(C11,LEN(C
11)-FIND("
,",C11)-1)
)-3)))
This
will convert it into a real date, which you can then format as you desire.
Steve
Random Solutions
Ping remote user?
Creating new mailbox databases in Exchange 2010
vbscript copy files to location based on user input
input text box
Message size limit exceeded, but I've checked the settings in Exchange 2007 ??
Suspended VLAN
Aggregate
How to get query cretaed by the prepare statement in PDO
Hyper Terminal v. 6.1 (Build 7600) running on Windows 7 Professional most often closes after clicking on File and then Open-How can I fix this?
Is there a way to change the Helo or EHLO on the exchange 2007 sp2 server?