Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Time Date Calculations

Posted on 2014-02-03
3
469 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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