Solved

Time Date Calculations

Posted on 2014-02-03
3
462 Views
Last Modified: 2014-02-05
Good Morning,

Have both date time combined and separated in excel.  Need to calculate both the median on the combined date/time and subtraction on the separated date/time.  Not sure what formula/formats to use.

See attached file.

Thanks
Nick
time-date-example.xml
0
Comment
Question by:nmolliconi
3 Comments
 
LVL 4

Assisted Solution

by:gozoliet
gozoliet earned 250 total points
ID: 39829746
To get an actual time from A/B3 use:
=A3+TIMEVALUE(CONCATENATE(LEFT(B3,LEN(B3)-2),":",RIGHT(B3,2)))

To get an actual time for C/D3 use:
=C3+TIMEVALUE(CONCATENATE(LEFT(D3,LEN(D3)-2),":",RIGHT(D3,2)))

I'm sure there's more elegant, but basically you are creating a time from the time field, keeping in mind that sometimes the horus are 1 digit, sometimes there's 2 digits, and then adding it to the date.

From there you can use the usual "Median" or substracting two dates formulas.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 250 total points
ID: 39829799
Hello Nick,

For your subtraction try this formula for row 3 copied down

=TEXT(D3,"00\:00")+C3-TEXT(B3,"00\:00")-A3

format as [h]:mm

and for the median do you just want a median of all those values? If so try a simple MEDIAN function like

=MEDIAN(A14:B18)

see highlighted cells on the attached

regards, barry
time-date-barry.xls
0
 

Author Closing Comment

by:nmolliconi
ID: 39835695
Thank you both.  Each solution worked

Nick
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question