Sums based on criteria

  • Thread starter Thread starter Randal
  • Start date Start date
R

Randal

Is it possible to create sums in a group footer for only the data that meets
a certain criteria?
 
Randal said:
Is it possible to create sums in a group footer for only the data that meets
a certain criteria?

Yes.

There are several ways to conditionally count or sum values.

=Count(IIf([field1] = "ABC", 1, Null))
=Sum((IIf([field1] = "ABC", [field2], 0))
 
Thanks Marshall.

Marshall Barton said:
Randal said:
Is it possible to create sums in a group footer for only the data that meets
a certain criteria?

Yes.

There are several ways to conditionally count or sum values.

=Count(IIf([field1] = "ABC", 1, Null))
=Sum((IIf([field1] = "ABC", [field2], 0))
 
Back
Top