Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jane
 
Posts: n/a
Default SUMPRODUCT problem

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:R 500))/SUMPRODUCT((I2:I500="ggo025")*(R2:R500<""))
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

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" schrieb im Newsbeitrag
...
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:R 500))/SUMPRODUCT((I2:
I500="ggo025")*(R2:R500<""))

  #3   Report Post  
Jane
 
Posts: n/a
Default

Works great!!!

Thanks you so much.

"Frank Kabel" wrote:

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" schrieb im Newsbeitrag
...
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:R 500))/SUMPRODUCT((I2:
I500="ggo025")*(R2:R500<""))


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


Why not use more appropriate...

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

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

Jane Wrote:
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:R 500))/SUMPRODUCT((I2:I500="ggo025")*(R2:R500<""))



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=276358

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 06:33 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 08:01 PM
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 09:03 PM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 10:08 PM
SUMPRODUCT - HIERARCHY Matt Brown via OfficeKB.com Excel Worksheet Functions 5 November 6th 04 04:54 AM


All times are GMT +1. The time now is 06:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"