Elapsed Time (h):mm:ss

Red Corvette

New Member
Joined
Jul 16, 2019
Messages
9
Hello, new to the forum with little knowledge of Excel. I've been searching for a formula for elapsed time showing in (h):mm:ss between to date/time Stamps i.e. Start date/time 7/10/2019 10:53 AM and finish date/time 7/10/2019 2:20 PM that will exclude weekends & holidays to no avail. I have the holidays listed on a separate tab that will need to manually adjusted each year. Any help greatly appreciated.
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,694
Code:
=(EndDate-StartDate)-(DAYS(EndDate,StartDate)-NETWORKDAYS(StartDate,EndDate,HolidayList))
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,694
Use F9 to calculate each formula segment to determine where the error is occurring.
Verify the Cell and Range references. The array for the Holiday List should not include the list header.
 

Red Corvette

New Member
Joined
Jul 16, 2019
Messages
9
Don't know anything about using F9 here is how I entered the formula =(P2-N2)-(DAYS(P2,N2)-NETWORKDAYS(N2,P2,Info!C36:C43))
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,694
Verify each part in a separate cell.
All references should be serial date values or numbers. Check using ISNUMBER.

My guess would be a value in C36:C43 is not a serial date or recognizable to Excel as Date Text.
 

Red Corvette

New Member
Joined
Jul 16, 2019
Messages
9
I managed to figure out how to use ISNUMBER via YouTube and the end date comes up False how do I fix it?
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,694
You will probably need to retype. If it was text matching one of the formats for your Region, Excel would probably convert it in the background.
You can try using the Text-To-Columns feature and just make sure the format matches the original.
 

Red Corvette

New Member
Joined
Jul 16, 2019
Messages
9
Being this formula is not working for some reason what would the formula be to only include work days.
 

Forum statistics

Threads
1,081,989
Messages
5,362,581
Members
400,683
Latest member
LogChief

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top