I have this data & would like to extract the date in dd/mm/yy and the time stamp separately to use in some calcs.
Jan 10, 2014 4:47 AM
Jan 10, 2014 4:47 AM
Jan 14, 2014 4:30 PM
Jan 15, 2014 4:00 PM
Jan 16, 2014 5:01 PM
MQ
I have this data & would like to extract the date in dd/mm/yy and the time stamp separately to use in some calcs.
Jan 10, 2014 4:47 AM
Jan 10, 2014 4:47 AM
Jan 14, 2014 4:30 PM
Jan 15, 2014 4:00 PM
Jan 16, 2014 5:01 PM
MQ
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Are those text values, or date/times formatted to look like that?
Pete
They are General, when I chage to date format it stays the same.
This data came out of a CISCO telephany system
as long as jan 01 is jan 01 not jan 1
simply =DATEVALUE(MID(A1,5,2)&LEFT(A1,3)&MID(A1,9,4)) for date and
=TRIM(RIGHT(A1,8))+0 cell format as h:mm am/pm for time
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
They are text values, then. Assuming the first is in cell A1, put this formula in B1:
=DATE(MID(A1,9,4),MATCH(LEFT(A1,3),{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0),MID(A1,FIND(",",A1)-2,2))
Format as a date in the style you prefer, then copy down. Put this formula in C1:
=--(MID(A1,FIND(" ",A1,12)+1,5)&":00")+IF(ISNUMBER(FIND("PM",A1)),0.5)
Format that as a time in your preferred style, then copy down.
Hope this helps.
Pete
Try mine ...
Pete
that would be
=DATEVALUE(TRIM(MID(A1,FIND(",",A1)-2,2))&LEFT(A1,3)&MID(A1,FIND(",",A1)+2,4))
This should work for any date
=SUBSTITUTE(MID(A1,5,8),",",LEFT(A1,3))+0
format in required date format
Audere est facere
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks