?
Solved

Time Date Calculations

Posted on 2014-02-03
3
Medium Priority
?
486 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 1000 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 1000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

864 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