Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Countif to ignore any errors

I would like to count the number of records which have good data , ignoring
the one's that have any errors

for eg: the data in cell A1:a6 is as follows:-

aa
bb
#NUM!
cc
#NUM!
dd

The count should give me 4 as only 4 out of the 6 above holds correct data

I cannot change the formula that is causing the error (like #NUM! above
using ISERROR route)

I am using this array formula but not able to get the desired result.

{=COUNTIF(IF(ISERROR(A1:A6)=FALSE,D57:D66),"<FALS E")}

Any suggestions please

Thanks


  #2   Report Post  
Dave R.
 
Posts: n/a
Default

Try

=SUMPRODUCT(--NOT(ISERROR(A1:A6)))


<SD wrote in message ...
I would like to count the number of records which have good data ,

ignoring
the one's that have any errors

for eg: the data in cell A1:a6 is as follows:-

aa
bb
#NUM!
cc
#NUM!
dd

The count should give me 4 as only 4 out of the 6 above holds correct data

I cannot change the formula that is causing the error (like #NUM! above
using ISERROR route)

I am using this array formula but not able to get the desired result.

{=COUNTIF(IF(ISERROR(A1:A6)=FALSE,D57:D66),"<FALS E")}

Any suggestions please

Thanks




  #3   Report Post  
Art
 
Posts: n/a
Default

You could try either:
=COUNTIF(A1:A6,"<#NUM!")
=SUM(IF(ISERR(A1:A6),0,1))

Art

"SD" wrote:

I would like to count the number of records which have good data , ignoring
the one's that have any errors

for eg: the data in cell A1:a6 is as follows:-

aa
bb
#NUM!
cc
#NUM!
dd

The count should give me 4 as only 4 out of the 6 above holds correct data

I cannot change the formula that is causing the error (like #NUM! above
using ISERROR route)

I am using this array formula but not able to get the desired result.

{=COUNTIF(IF(ISERROR(A1:A6)=FALSE,D57:D66),"<FALS E")}

Any suggestions please

Thanks



  #4   Report Post  
Dave R.
 
Posts: n/a
Default

This is an alternative, but isn't as good because it doesn't count numbers
unless they are formatted as text (and reentered) or entered as text.

=COUNTIF(A1:A6,"*")


<SD wrote in message ...
I would like to count the number of records which have good data ,

ignoring
the one's that have any errors

for eg: the data in cell A1:a6 is as follows:-

aa
bb
#NUM!
cc
#NUM!
dd

The count should give me 4 as only 4 out of the 6 above holds correct data

I cannot change the formula that is causing the error (like #NUM! above
using ISERROR route)

I am using this array formula but not able to get the desired result.

{=COUNTIF(IF(ISERROR(A1:A6)=FALSE,D57:D66),"<FALS E")}

Any suggestions please

Thanks




  #5   Report Post  
 
Posts: n/a
Default

Dave R. wrote...
This is an alternative, but isn't as good because it doesn't count

numbers
unless they are formatted as text (and reentered) or entered as text.

=COUNTIF(A1:A6,"*")

....

There are times 2 functions make more sense than one.

=COUNTIF(range,"*")+COUNT(range)
Both function calls skip cells evaluating as error or boolean values.

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
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM
Countif bjg Excel Worksheet Functions 11 November 27th 04 03:32 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


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