Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 279
Default sumproduct bllank function handling

=sumproduct({1},{0}) produces 0 as expected.
=sumproduct({1},{""}) does the same.
=sumproduct({1},{a1}) where a1 is "" does the same.
=sumproduct({1},{a1}) where a1 is =if(0,0,0) does the same
=sumproduct({1},{a1}) where a1 is =if(0,"","") produces #VALUE! for
reasons I do not understand.

Why the #VALUE! which is documented as:
"The array arguments must have the same dimensions. If they do not,
SUMPRODUCT returns the #VALUE! error value".

I am trying to take advantage of:
"SUMPRODUCT treats array entries that are not numeric as if they were
zeros".

My real data involves a function which returns non-negative numbers
including zero and "" to mean - this does not apply.

P.S. Is there any good reason why array constants can't contain function
calls. e.g. the following is not an array constant: {if(0,0,0)}

I am using Excel 2003 (11.6355.6360) SP1 on XP Professional SP2 if that
is significant.
--
Walter Briscoe
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
Handling #NUM! error Michel Khennafi Excel Worksheet Functions 1 February 26th 07 08:49 PM
Error handling in macro michaelberrier Excel Discussion (Misc queries) 7 May 23rd 06 09:33 PM
checkbox event handling function nevwalters Excel Worksheet Functions 2 May 16th 06 04:27 AM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


All times are GMT +1. The time now is 10:44 AM.

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"