Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default SumProduct When Range Has Errors

I am using this formula.

=SUMPRODUCT(--($C$3:$C$180=I3);--($F$3:$F$1800))/COUNTIF($C$3:$C$180;I3)

Sometimes the ranges have value like:

#N/A

#VALUE!
#NUM!

Is there a way to have make the formula "ignore" the cells w/ errors ?

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SumProduct When Range Has Errors

Does this do it

=SUM(IF(ISNUMBER($F$3:$F$18),($C$3:$C$18=I3)*($F$3 :$F$180)*(ROW($C$3:$C$18)^0)))/COUNTIF($C$3:$C$18,I3)

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"carl" wrote in message
...
I am using this formula.

=SUMPRODUCT(--($C$3:$C$180=I3);--($F$3:$F$1800))/COUNTIF($C$3:$C$180;I3)

Sometimes the ranges have value like:

#N/A

#VALUE!
#NUM!

Is there a way to have make the formula "ignore" the cells w/ errors ?

Thank you in advance.



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
Ignore errors in range hmm Excel Worksheet Functions 3 June 14th 07 11:18 AM
New Errors in Sumproduct Usage Danger Mouse Excel Worksheet Functions 5 April 12th 07 03:44 PM
Help on sumproduct returning errors Pierre Excel Worksheet Functions 2 November 16th 06 04:00 PM
Ignoring text and errors with Sumproduct SteveC Excel Worksheet Functions 3 May 1st 06 07:05 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM


All times are GMT +1. The time now is 11:41 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"