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 "#N/A" errors

The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!, #REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default Counting the number of "#N/A" errors

Try the ISNA() function, and also ERROR.TYPE().

Your formula is looking for a text string "#N/A".
--
David Biddulph

"Bob" wrote in message
...
The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!,
#REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Counting the number of "#N/A" errors

Bob,

You have wrote the right formula. It must return u the right result. U can
check case sensetive like "#n/a" instead of "#N/A" without any space. I have
tried this function and that returned my your desired result: -

I repeat: =COUNTIF(A2:CY5000,"#N/A")

Mujeeb

"Bob" wrote:

The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!, #REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting the number of "#N/A" errors

David,
Thanks for the suggestion.
I tried the following formula:
=COUNTIF(A2:CY5000,ERROR.TYPE(A2:CY5000)=7)
But the result is still zero (it should be 2).
Am I doing something wrong?
Thanks again for your help,
Bob

P.S. I need to test for other error types besides #N/A. Hence, the reason
why using ISNA() is not an option here.



"David Biddulph" wrote:

Try the ISNA() function, and also ERROR.TYPE().

Your formula is looking for a text string "#N/A".
--
David Biddulph

"Bob" wrote in message
...
The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!,
#REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Counting the number of "#N/A" errors

Your COUNTIF formula should return the desired result. Maybe your
values are being recognized as text. Try coercing them into true error
values...

1) Select your range of cells

2) Edit Replace

Find what: #N/A

Replace with: #N/A

3) Click Replace All

Hope this helps!

In article ,
Bob wrote:

The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!, #REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Counting the number of "#N/A" errors

Ah, here's another one of Excel's anomalies!

Enter the TEXT value #N/A in some cells and try to use Countif. Do the same
thing with the TEXT values TRUE/FALSE.

To get it to work you must coerce the formula to explicitly evaluate the
criteria as TEXT. You can do this using the asterisk wildcard *:

=COUNTIF(A1:A5,"#N/A*")
=COUNTIF(A1:A5,"TRUE*")

Without the wildcard:

=COUNTIF(A1:A5,"TRUE")

Will count the LOGICAL value TRUE even though the criteria argument is
enclosed in quotes leading you to think it's evaluated as TEXT.

Biff

"Bob" wrote in message
...
The following formula finds the number of errors on the worksheet:
=SUMPRODUCT(--(ISERROR(A2:CY5000)))
=4

Now I'm trying to determine which errors were found, so I wrote the
following formula:
=COUNTIF(A2:CY5000,"#N/A")
=0

After manually looking through the entire worksheet I found 2 cells
containing "#N/A". Yet, my previous formula returned zero.

Is there a way I can find a specific error type (e.g., #N/A, #VALUE!,
#REF!,
etc.)? If so, I would appreciate any help in coming up with the correct
formula.

Thanks,
Bob



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 number of cells that make up a sum.. tim m Excel Discussion (Misc queries) 2 September 21st 06 02:55 PM
Counting number of cells that contain certain text but not cell tw JRD Excel Worksheet Functions 1 September 11th 06 09:50 PM
Counting a specific number only if an adjacent cell has something Hugsie Bear Excel Discussion (Misc queries) 5 August 2nd 06 02:47 PM
counting if a value exceeds a specified number Albert Excel Discussion (Misc queries) 2 July 20th 06 02:17 PM
Number Counting DNA Excel Discussion (Misc queries) 3 June 2nd 05 05:08 PM


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