Home > Forum Home > Analyzing Corporate Financial Data > Nested IF Statement - Subtract Weekend Days | Share |
Forum Topic | Post Reply Login |
Nested If Statement - Subtract Weekend Days | Rate this: (3/5 from 1 vote) |
I use IF statements to track invoices from approval date to mail date. The following statement is used to track the # of days it takes to finalize and invoice once the invoice is approved: =IF(ISBLANK(Q45),"",Q45-K45) Q45 represents the date the invoice was processed and K45 represents the approval date. Does anyone know a way to adjust the formula so weekends are not included in the total?? i.e if a weekend fell in between the approval date and the process date, the formula would subtract 2 from the total...?? Please help!!! | ||
Posted by RossPQ on |
Replies - Displaying 1 to 6 of 6 | Order Replies By: Most Recent | Chronological | Highest Rated |
Rate this: (4/5 from 2 votes) =IF(ISBLANK(Q45),"",IF(WEEKDAY(Q45)<=WEEKDAY(K45),Q45-K45-2,Q45-K45)) | |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
Rate this: (3/5 from 1 vote) What if the dates are greater than one week apart? i.e an invoice was approved on Jan 6 and processed on Jan 18. In this scenario, I would like to subtract 4 from the total. Is there a condition that could be added to the formula to account for this? Possibly: IF(WEEKDAY(Q45+7)<=WEEKDAY(K45),Q45-K45-4 Again, I would like this included in the original formula so that the formula is constant throughout the spreadsheet. Thanks again! | |
Posted by RossPQ on |
Rate this: (3/5 from 1 vote) =IF(ISBLANK(Q45),"",IF(WEEKDAY(Q45)<=WEEKDAY(K45),Q45-K45-2,OR(IF(WEEKDAY(Q45+7)<=WEEKDAY(K45),Q45-K45-4,Q45-K45)))) It only subtracts 2 in any scenario. Any suggestions?? Thanks | |
Posted by RossPQ on |
Rate this: (3/5 from 1 vote) | |
Posted by Roshan10043 on |
Rate this: (3/5 from 1 vote) | |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
Rate this: (3/5 from 1 vote) | |
Posted by RossPQ on |
Displaying page 1 of 1 |
Find relevant Excel templates and add-ins for Nested IF Statement - Subtract Weekend Days in the Excel Business Solutions Directory |