Sum If

L

Lynn

Is it possible to do a SumIf calculation in an Access 2003 report (similar to
what I can do in Excel)? For example, I have various values displayed in a
Color field on my report. I would like to create a formula that will count
only the blue values.
 
M

Marshall Barton

Lynn said:
Is it possible to do a SumIf calculation in an Access 2003 report (similar to
what I can do in Excel)? For example, I have various values displayed in a
Color field on my report. I would like to create a formula that will count
only the blue values.

=Sum(IIf(something = "blue", 1, 0))

or one of any number of various similar expressions.

BUT, that make your expression dependent on a data value.
Instead you should use a Totals type query to calculate the
count for all the different colors.
 

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

Top