Sumproduct Help Required

T

Timmy Mac1

Tried this yesterday and have only just realised that my message didn'
actually load up.

I have a column range of IDs named ALPHA alongside a column range o
values named BETA.

I want to find out, for a given ID in cell A1, both the number o
values which exceed a given value in B1, and the aggregate of thos
values.

I can get the number of values by the following formula....

=SUMPRODUCT((ALPHA=A1)*(BETA>=B1))

However I'm struggling to get an aggregate total of the relevan
values. I was kind of thinking ..

=SUMPRODUCT((ALPHA=A1)*(BETA>=B1)*(BETA)) would do the trick but i
doesn't , I only get a return of #VALUE :(

Can anyone help me please ? :
 
J

JulieD

Hi Timmy

=SUMPRODUCT(--(alpha=A1),--(beta>=B1)*beta)

should give you what you're after

Cheers
JulieD
 
T

Timmy Mac1

Julie

Many many thanks. I've got it to work with a slight change to what you
had..

=SUMPRODUCT((ALPHA=A1)*(BETA>=B1),(BETA))

(sorry I wasn't sure what the -- represents :confused: )

It's really bugged me this thing so once again thanks for taking the
time to respond and getting me in the right direction :)
 
B

Bob Phillips

Timmy,

Your formula works fine for me.

The only thing I can think is that you have a text string in one of the
cells in BETA.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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