sumproduct for getting counts

D

Dan

I am using a sumproduct formula to select certain criteria
and than return the Gross $$ amounts based on the
criteria. I am wanting to get a count on the same
criteria so that I and establish Averages. Can this be
done with sumproduct or is there another function. Here is
one of my current formulas :
=SUMPRODUCT((Month_rng=SelectMonth)*(Adj_rng<>"A")*
(Model_rng="UsdHvyTrk"),Gross_rng)

Any suggestions???

Dan
 
N

Norman Harker

Hi Dan!

Try:

=SUMPRODUCT((Month_rng=SelectMonth)*(Adj_rng<>"A")*(Model_rng="UsdHvyTrk"),Gross_rng)/=SUMPRODUCT((Month_rng=SelectMonth)*(Adj_rng<>"A")*(Model_rng="UsdHvyTrk"))

By omitting the column that contains the amounts, you'll get the count
for the three criteria.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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