PC Review


Reply
Thread Tools Rate Thread

Counting errors

 
 
kittronald
Guest
Posts: n/a
 
      13th May 2011
In Microsoft Excel 2007, how can you count the number of Excel errors
(i.e., #VALUE!, #N/A, etc.) in a named range ?

Using =COUNTIF(named_range,"#*") doesn't work with Excel error values.



- Ronald K.
 
Reply With Quote
 
 
 
 
Charabeuh
Guest
Posts: n/a
 
      14th May 2011
Hello,

Try this formula:
=SUMPRODUCT( --ISERROR(named_range) )



> In Microsoft Excel 2007, how can you count the number of Excel errors
> (i.e., #VALUE!, #N/A, etc.) in a named range ?
>
> Using =COUNTIF(named_range,"#*") doesn't work with Excel error values.
>
>
>
> - Ronald K.



 
Reply With Quote
 
Ram
Guest
Posts: n/a
 
      16th May 2011
On May 14, 3:27*am, kittronald <kittron...@yahoo.com> wrote:
> In Microsoft Excel 2007, how can you count the number of Excel errors
> (i.e., #VALUE!, #N/A, etc.) in a named range ?
>
> Using =COUNTIF(named_range,"#*") doesn't work with Excel error values.
>
> - Ronald K.


Hi You can use following array formula also

={SUM(ISERROR(named_range)*1)}
or
={SUM(IF(ISERROR(named_range),1,0))}
 
Reply With Quote
 
kittronald
Guest
Posts: n/a
 
      17th May 2011
Charabeuh,

Thanks, that did the trick !

I keep forgetting to use SUMPRODUCT to expand the contents of a
multi-valued named range.



- Ronald K.
 
Reply With Quote
 
kittronald
Guest
Posts: n/a
 
      17th May 2011
Ram,

Thanks for the reply.

I try to stay away from array entered formulas since they
collectively slow my computer down.

I appreciate the solution though.


- Ronald K.
 
Reply With Quote
 
joeu2004
Guest
Posts: n/a
 
      19th May 2011
On May 17, 1:01*pm, kittronald <kittron...@yahoo.com> wrote:
> I try to stay away from array entered formulas since they
> collectively slow my computer down.


I have several reasons for avoiding array formulas, but performance is
not one of them.

Comparing SUMPRODUCT(--ISERROR(range)) to the array formula SUM(--
ISERROR(range)), I find that the SUM formula is about 55 times faster
than SUMPRODUCT for a range of 100 cells and about 390 times faster
for a range of 10000 cells on my system[*].

Nevertheless, we are talking about very small times per formula (less
than 2 msec on my computer).

My primary reason for avoiding single-cell array formulas is that they
are error-prone. Often, they will appear to work (return a value
instead of an error) if we press Enter instead of ctrl+shift+Enter,
resulting in a non-array formula.


-----[*] XL2003 on WinXP. Single-core 2.127 GHz Pentium M processor.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Errors Faraz A. Qureshi Microsoft Excel Programming 9 31st Jul 2009 10:23 AM
Counting the number of errors in a worksheet =?Utf-8?B?Qm9i?= Microsoft Excel Worksheet Functions 7 8th Nov 2007 10:22 AM
Counting with a condition disregarding errors vsoler Microsoft Excel Worksheet Functions 7 19th May 2007 10:04 PM
VBA counting colors, errors =?Utf-8?B?VGhlUm9vaw==?= Microsoft Excel Programming 4 18th Aug 2006 06:04 PM
Counting Errors =?Utf-8?B?VGFyaXF1ZQ==?= Microsoft Excel Worksheet Functions 1 24th Feb 2006 04:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 PM.