Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default SUMPRODUCT Error

I am using named ranges from the other workbook but I am getting #N/A
error.
My formula is as below.
=SUMPRODUCT((ccc=A6),(rrr<""))
=SUMPRODUCT(-(ccc=A6),-(rrr<""))

When I use counta with ccc or rrr, I am getting correct answer.
But now I want the count of non blank rrr where ccc value equals value
of A6.

Please help me to sort out this error.

Regards,
Madiya

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default SUMPRODUCT Error

Excel can only resolve names from the same workbook, unless you tell it where
to look. Thus you could use something like
=SUMPRODUCT(-(Book4!ccc=A6),-(Book4!rrr<""))

Your first formula would not even work from the same workbook, because
(ccc=A6) and (rrr<"") are arrays of booleans, not numbers, and therefore are
skipped by SUMPRODUCT. In your second formula, the minus signs coerce the
arrays to 0's and 1's.

Note that if you add a third condition to your second fomrula, you would get
a negative sum, therefore it is more common to use -- instead of - to coerce.

Jerry

"Madiya" wrote:

I am using named ranges from the other workbook but I am getting #N/A
error.
My formula is as below.
=SUMPRODUCT((ccc=A6),(rrr<""))
=SUMPRODUCT(-(ccc=A6),-(rrr<""))

When I use counta with ccc or rrr, I am getting correct answer.
But now I want the count of non blank rrr where ccc value equals value
of A6.

Please help me to sort out this error.

Regards,
Madiya

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 239
Default SUMPRODUCT Error

On Aug 1, 9:36 am, Jerry W. Lewis wrote:
Excel can only resolve names from the same workbook, unless you tell it where
to look. Thus you could use something like
=SUMPRODUCT(-(Book4!ccc=A6),-(Book4!rrr<""))

Your first formula would not even work from the same workbook, because
(ccc=A6) and (rrr<"") are arrays of booleans, not numbers, and therefore are
skipped by SUMPRODUCT. In your second formula, the minus signs coerce the
arrays to 0's and 1's.

Note that if you add a third condition to your second fomrula, you would get
a negative sum, therefore it is more common to use -- instead of - to coerce.

Jerry



"Madiya" wrote:
I am using named ranges from the other workbook but I am getting #N/A
error.
My formula is as below.
=SUMPRODUCT((ccc=A6),(rrr<""))
=SUMPRODUCT(-(ccc=A6),-(rrr<""))


When I use counta with ccc or rrr, I am getting correct answer.
But now I want the count of non blank rrr where ccc value equals value
of A6.


Please help me to sort out this error.


Regards,
Madiya- Hide quoted text -


- Show quoted text -


Jerry,
Thanks for your help,
but need some more help.
My name range ccc contains full referancce to the other workbook
range.
The refers to box contains this...
='C:\Documents and Settings\reliance\Desktop\[RUIM new.xls]Damage
Receipt'!$C$1:$C$20000
If this is not enough then I need to checg the formulas but since it
is full referance it should work.
Can you pl help me understanding this........ hope I am not asking too
much.

Regards,
Madiya



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
#N/A error in sumproduct Paul C Excel Discussion (Misc queries) 0 December 9th 09 10:33 PM
sumproduct value error quinn111 Excel Discussion (Misc queries) 4 January 23rd 09 03:05 AM
SUMPRODUCT with #VALUE error Joe Gieder Excel Worksheet Functions 3 December 12th 07 07:09 PM
Sumproduct value error Brad Excel Worksheet Functions 7 October 31st 06 09:47 PM
#ref error with Sumproduct [email protected] Excel Worksheet Functions 5 October 9th 06 07:00 PM


All times are GMT +1. The time now is 03:35 AM.

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

About Us

"It's about Microsoft Excel"