Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-10-2025, 05:56 AM
SnakeDoctor's Avatar
SnakeDoctor SnakeDoctor is offline Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days Windows 11 Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days Office 2021
Advanced Beginner
Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days
 
Join Date: Jul 2023
Location: Ft. Worth, TX
Posts: 38
SnakeDoctor is on a distinguished road
Default Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days

I am developing a Project Tracking Workbook and need to calculate the difference between START DATE (Col N) and END DATE (Col P) as the TOTAL PRODUCTION TIME (Col R) in months and days.

I have tried two formulas, as follows:

=IF($N10<>"",IFERROR(DATEDIF($N10,$P10,"ym")&" months "&DATEDIF($N10,$P10,"md")+1&" days", "No 'End Date' Entered"),"")

This one works, but does not remove W/Es or holidays. It is in cells R4 and R5 of the attached screenshot.

=IF($N12<>"",IFERROR(NETWORKDAYS($N12,$P12,M116:M1 23)&" months "&NETWORKDAYS($N12,$P12,M116:M123)&" days", "No 'End Date' Entered"),"")

This is my poor attempt to incorporate NETWORKDAYS, which kind of works but returns only the number of days in both counts. It is in cell R6 of the attached screenshot.



I have tried several methods to convert the (first) calculation result into months with no luck.

Any suggestions?
Attached Images
File Type: jpg screenshot.jpg (77.6 KB, 13 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default How to automatically Calculate number of days between two dates? wcngu1 Word 6 10-24-2019 04:20 AM
Pivot table- % growth and difference between two items in same column by months sarana Excel 2 01-28-2019 06:42 AM
Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days Calculating Quarterly Dates by Months not Days Artboy34 Excel 3 01-28-2016 09:47 AM
set daily goal for actual workdays, excluding weekends holidays and days off Brian Reilly Excel 1 01-24-2014 11:56 PM
Need to calculate difference between 2 dates, sans W/E and holidays, with result in months and days Calculate difference by days and hours alysolyman Excel 6 05-13-2013 02:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft