I am trying to sum the following and keep getting either wrong totals or a blank.
=Sum(IIf([Chute#1]="CBOL - N/A",[Pallet#1Lbs]/2000))+(Count(I If([Chute#2]="CBOL - N/A",[Pallet#2Lbs]/2000)))+(Count( IIf([Chute#3]="CBOL - N/A",[Pallet#3Lbs]/2000)))+(Count( IIf([Chute#4]="CBOL - N/A",[Pallet#4Lbs]/2000)))+(Count( IIf([Chute#5]="CBOL - N/A",[Pallet#5Lbs]/2000)))+(Count( IIf([Chute#6]="CBOL - N/A",[Pallet#6Lbs]/2000)))
Basically, I have a table with 6 fields (Chute#1, Chute#2, etc) that when a record equals "CBOL - N/A" it will SUM the weight stored in another field (Pallet#1Lbs, Pallet#2Lbs, etc.). Is there a better way?
=Sum(IIf([Chute#1]="CBOL - N/A",[Pallet#1Lbs]/2000))+(Count(I If([Chute#2]="CBOL - N/A",[Pallet#2Lbs]/2000)))+(Count( IIf([Chute#3]="CBOL - N/A",[Pallet#3Lbs]/2000)))+(Count( IIf([Chute#4]="CBOL - N/A",[Pallet#4Lbs]/2000)))+(Count( IIf([Chute#5]="CBOL - N/A",[Pallet#5Lbs]/2000)))+(Count( IIf([Chute#6]="CBOL - N/A",[Pallet#6Lbs]/2000)))
Basically, I have a table with 6 fields (Chute#1, Chute#2, etc) that when a record equals "CBOL - N/A" it will SUM the weight stored in another field (Pallet#1Lbs, Pallet#2Lbs, etc.). Is there a better way?
Comment