Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Formula to calculate Business Days

$
0
0

I have 3 fields on my SharePoint list:

Created (Date field)

Tier Level (dropdown with 5 choices)

Due Date (calculated field based on the created date and the Tier level)

Here is the formula in the Due Date column currently:

=IF([Tier Level Resolution Rating]="Level 1: Tracking Only",Created+5,IF([Tier Level Resolution Rating]="Level 2: Tracking Only, Re-Training",Created+10,IF([Tier Level Resolution Rating]="Level 3: Tracking Only, Procedural Updates and Re-Training",Created+15,IF([Tier Level Resolution Rating]="Level 4: QIR Processing - Preventative Action Plan",Created+30,IF([Tier Level Resolution Rating]="Audit",Created+30)))))

The problem is the above calculates the Due date by calendar date and I need business days (no Saturdays or Sundays)

I've tried using this but I get syntax errors:

=IF([Tier Level Resolution Rating]="Level 1: Tracking Only",IF(WEEKDAY([Created],2)<6),Created+5),IF([Tier Level Resolution Rating]="Level 2: Tracking Only, Re-Training",IF(WEEKDAY([Created],2)<6),Created+10),IF([Tier Level Resolution Rating]="Level 3: Tracking Only, Procedural Updates and Re-Training",IF(WEEKDAY([Created],2)<6),Created+15),IF([Tier Level Resolution Rating]="Level 4: QIR Processing - Preventative Action Plan",IF(WEEKDAY([Created],2)<6),Created+30),IF([Tier Level Resolution Rating]="Audit",IF(WEEKDAY([Created],2)<6),Created+30))))))

Any help would be appreciated




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>