Hi all,
First time user, short term lurker! I'm not sure if this is the right place or not but I'd like to get a formula check as a solution to the following issue:
I'm trying to sum the total number of networkdays and hours (so totaling only those days; hours that fall between monday - friday), between two date:time filled columns in Excel 2010.
I've run through the search function and found 'daddylonglegs' has answered this question a few times before (just y'know, once or twice.. but I want to make sure MY work around is applicable to MY situation (I'm a special snowflake dammit.)
Given A2 Contains the Start Date & Time
and B2 Contains the End Date & Time
Please also note that this data cannot have an End Date & Time that comes before a Start Date & Time (Step 2 cannot happen before step 1's completion)
So then the summation formula would be...
=IF(NETWORKDAYS(A2,B2)-1 =0, mod(B2,1)-mod(A2,1),(NETWORKDAYS(A2,B2)-1)+MOD(B2,1)-MOD(A2,1)))
Look familiar?
Anyway, I added in the IF statement to make sure I capture just the hours between Start Date and End Date --- if the Start Date & Time and End Date & Time are on the same day (happens quite a bit within my data set).
Please advise!
Thanks all and I hope to become a very active member on these boards!
Bookmarks