Solved

Time Date Calculations

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

My experience with Windows 10 over a one year period and suggestions for smooth operation
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now