Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting the number of errors in a worksheet

I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Counting the number of errors in a worksheet

One way is to try it as:
=SUMPRODUCT(--(ISERROR(A1:DG5000)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote:
I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting the number of errors in a worksheet

Max - That did the trick! Thanks!
Bob

"Max" wrote:

One way is to try it as:
=SUMPRODUCT(--(ISERROR(A1:DG5000)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote:
I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Counting the number of errors in a worksheet

You're welcome, Bob !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote in message
...
Max - That did the trick! Thanks!
Bob



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Counting the number of errors in a worksheet

Thanks for this answer Max - it's helped me out aswell.

Can I just ask though, what does the -- mean inbetween the two brackets ie
(--( and how does it affect the formula?

Thanks,

AW

"Max" wrote:

One way is to try it as:
=SUMPRODUCT(--(ISERROR(A1:DG5000)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote:
I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Counting the number of errors in a worksheet

-- is a way of converting a Boolean (True or False) to a number (1 or 0).

http://www.mcgimpsey.com/excel/variablerate1.html is one place which gives
an explanation.
--
David Biddulph

"ArcticWolf" wrote in message
...
Thanks for this answer Max - it's helped me out aswell.

Can I just ask though, what does the -- mean inbetween the two brackets ie
(--( and how does it affect the formula?

Thanks,

AW

"Max" wrote:

One way is to try it as:
=SUMPRODUCT(--(ISERROR(A1:DG5000)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bob" wrote:
I have a worksheet containing formulas in the range of A1:DG5000. I
wrote
the following formula to count the number of (any) errors in that
range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned
formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Counting the number of errors in a worksheet

How about:

=SUMPRODUCT(--(ISERROR(A1:dg5000)))



Bob wrote:

I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting the number of errors in a worksheet

Dave - That did the trick! Thanks!
Bob

"Dave Peterson" wrote:

How about:

=SUMPRODUCT(--(ISERROR(A1:dg5000)))



Bob wrote:

I have a worksheet containing formulas in the range of A1:DG5000. I wrote
the following formula to count the number of (any) errors in that range:

=COUNT(ISERROR(A1:DG5000))

I know there are 4 cells containing errors, but the aforementioned formula
returns a value of 1.
Any help would be greatly appreciated. Thanks.


--

Dave Peterson

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
Counting the number when you have a number and text HRLADY Excel Worksheet Functions 11 May 23rd 06 07:21 PM
is there a limit to the number of rows a worksheet can have? Debi Excel Discussion (Misc queries) 2 May 22nd 06 02:47 PM
I need a unique number to be created per worksheet Roy Tamir Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Avoiding Errors When Attempting To Retrieve Data From A Non-existant Worksheet BloodyShrapnel Excel Worksheet Functions 1 March 24th 06 01:25 AM
ASSIGNING A NEW NUMBER TO A WORKSHEET EVERY TIME IT IS OPEN steppie70 Excel Worksheet Functions 6 March 13th 06 09:52 PM


All times are GMT +1. The time now is 11:16 PM.

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"