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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top