SUMPRODUCT problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

this formula is returning VALUE#! error, the formula works if data is filled
in through cells 500, but if there are blank cells in the range I get this
error.

I'm trying to find out the average in column R, if column I is "ggo025" and
column R is not "". Please help, thanks.



=SUMPRODUCT((I2:I500="ggo025")*(R2:R500<>"")*(R2:R500))/SUMPRODUCT((I2:I500="ggo025")*(R2:R500<>""))
 
Hi
try:
=SUMPRODUCT(--(I2:I500="ggo025"),--(R2:R500<>""),R2:R500)/SUMPRODUCT(--
(I2:I500="ggo025"),--(R2:R500<>""))

I suspect you don't have REAL blank cells but maybe a "" string in
R2:R500

--
Regards
Frank Kabel
Frankfurt, Germany

Jane said:
this formula is returning VALUE#! error, the formula works if data is filled
in through cells 500, but if there are blank cells in the range I get this
error.

I'm trying to find out the average in column R, if column I is "ggo025" and
column R is not "". Please help, thanks.
=SUMPRODUCT((I2:I500="ggo025")*(R2:R500<>"")*(R2:R500))/SUMPRODUCT((I2:
I500="ggo025")*(R2:R500<>""))
 
Works great!!!

Thanks you so much.

Frank Kabel said:
Hi
try:
=SUMPRODUCT(--(I2:I500="ggo025"),--(R2:R500<>""),R2:R500)/SUMPRODUCT(--
(I2:I500="ggo025"),--(R2:R500<>""))

I suspect you don't have REAL blank cells but maybe a "" string in
R2:R500

--
Regards
Frank Kabel
Frankfurt, Germany


=SUMPRODUCT((I2:I500="ggo025")*(R2:R500<>"")*(R2:R500))/SUMPRODUCT((I2:
I500="ggo025")*(R2:R500<>""))
 
Why not use more appropriate...

=AVERAGE(IF((I2:I500="ggo025")*(R2:R500<>""),R2:R500))

which you need to confirm with control+shift+enter instead of just wit
enter.
 

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