Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I'm trying to show the number of days between two dates. The formula
below works, but counts EVERY day. I just want the weekdays counted (exclude Sat and Sun). Can you assist? =IF(AND(E20<"",G20<""),DAYS360(E20,G20),"") |
#2
![]() |
|||
|
|||
![]()
Check out the NETWORKDAYS function:-
Returns the number of whole working days between start_date and end_date. Working days exclude weekends and any dates identified in holidays. Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days worked during a specific term. If this function is not available, run the Setup program to install the Analysis ToolPak. After you install the Analysis ToolPak, you must enable it by using the Add-Ins command on the Tools menu. "Annabelle" wrote: I'm trying to show the number of days between two dates. The formula below works, but counts EVERY day. I just want the weekdays counted (exclude Sat and Sun). Can you assist? =IF(AND(E20<"",G20<""),DAYS360(E20,G20),"") |
#3
![]() |
|||
|
|||
![]()
That worked great, with one problem - when the dates are the same
(budgeted vs. actual), the result is 1 but should be zero. I added -1 to the end of the formula. Thanks for your help. |
#4
![]() |
|||
|
|||
![]()
Yeah, but now when the dates aren't the same the calc will be off by 1!
Robbing Peter to pay Paul? Try this: =IF(budgeted=actual,0,your_formula_here)) Biff "Annabelle" wrote in message oups.com... That worked great, with one problem - when the dates are the same (budgeted vs. actual), the result is 1 but should be zero. I added -1 to the end of the formula. Thanks for your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
Determine Frequency in Filtered List | Excel Worksheet Functions | |||
determine which cell a value is returned from | Excel Discussion (Misc queries) | |||
weekday display in excel | Excel Worksheet Functions | |||
formula to determine the first column containing any data | Excel Worksheet Functions |