At the bottom is the code that I wrote but keep getting syntax errors so I thought if I broke it down, someone may have a better chance of helping:
The code needs to use the formula:
if [CC Description] = *Decherd* & [Shift(D/N)]="WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/4.7375+[Authorization]
if [CC Description] = *Decherd* & [Shift(D/N)]<>"WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/10.2+[Authorization]
otherwise:
if [CC Description]<>*Decherd* and [Shift(D/N)]="WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[WE Days]+[Authorization],-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[Days]+[Authorization])
Current Formula
=iif([CC Description] = *Decherd* and [Shift (D/N)]="WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/4.7375+[Authorization],iif([CC Description] =*Decherd and [Shift (D/N)] <> "WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/10.2+[Authorization], IIf([CC Description]<>*Decherd* and [Shift (D/N)]="WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[WE Days]+[Authorization],-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[Days]+[Authorization])
Thank you for any and all help
The code needs to use the formula:
if [CC Description] = *Decherd* & [Shift(D/N)]="WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/4.7375+[Authorization]
if [CC Description] = *Decherd* & [Shift(D/N)]<>"WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/10.2+[Authorization]
otherwise:
if [CC Description]<>*Decherd* and [Shift(D/N)]="WE":
-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[WE Days]+[Authorization],-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[Days]+[Authorization])
Current Formula
=iif([CC Description] = *Decherd* and [Shift (D/N)]="WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/4.7375+[Authorization],iif([CC Description] =*Decherd and [Shift (D/N)] <> "WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/10.2+[Authorization], IIf([CC Description]<>*Decherd* and [Shift (D/N)]="WE",-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[WE Days]+[Authorization],-(Sum([Roll])-Sum([Outside Total])-Sum([Offline Total]))/[Days]+[Authorization])
Thank you for any and all help