Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8194003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:40:29+00:00 2026-06-07T04:40:29+00:00

I have a data file with timestamps in this TEXT format: June 11, 2012

  • 0

I have a data file with timestamps in this TEXT format:

June 11, 2012 3:47:56 PM GMT-07:00

I need to do calculations such as time difference between different entries, so obviously I have to re-format the timestamp into something that Excel can do math on.

Optimally, this format should work I think:

6/11/2012 3:47:56 PM

…

Here’s what I’ve done so far … use MID combined with DATEVALUE to get the date (my timestamp is in cell A8):

=datevalue(mid(a8, 1, find(",",a8)+5))

which results in this being displayed:

11-Jun-12

I can calculate difference in days now, but my ‘customer’ wants the data in hours and minutes as well.

So I thought perhaps I could use TIMEVALUE and MID to parse the time portion of the same timestamp, but I’m at a loss on how to efficiently calculate the length parm for MID properly. The timestamp can be either 11 or 10 characters in length depending on the time displayed since it doesn’t use a preceeding zero for times before 10 a.m.

If there are better or easier ways to do the translation / reformatting of the timestamp, I’d love to hear about it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:40:31+00:00Added an answer on June 7, 2026 at 4:40 am

    Assuming there’s always going to be AM or PM, then the value is:

    =DATEVALUE(LEFT(A8,FIND("M",A8,2)))+TIMEVALUE(LEFT(A8,FIND("M",A8,2)))

    Edited to avoid May and March, thanks @barry

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this time series data: timestamp depth from_sensor_to_river_bottom Depth_from_river_surface_to_bottom 1 2012-05-23 18:30:12-05 16.4
I have a XML file, that looks like this inside: <Data> <INFO> .. ...
I have a data file containing timestamps like 1331856000000. Unfortunately, I don't have a
I have a CSV file that looks like this, where time is a UNIX
So I have this script that parses through a file and inserts data into
I have a data file that looks like the following example. I've added '%'
I have a data file with the # sign as delimiter, that I would
I have a data file which is comprised of rows of data, newline separated.
I have a data file, a signature file (created by the GnuPG) and a
Say I have a data file that I want to process; I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.