Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default countif with multiple criteria

Hi ALL,

In cells E4:E12 have the next data:

80
0
80
#N/A
300
50

100
250

Need COUNTIF formula to count the number of not empty cells different of 0
and #N/A in the range E4:E12. The right answer should be 6.

Tried next formulas with no success:
=COUNTIF(E4:E12,"<""")-COUNTIF(E4:E12,"<#N/A") gives me as answer 1 which
obviously is wrong.
=SUMPRODUCT(--(E4:E12<""),--(E4:E12<"#N/A")) gives me as answer #N/A

=FREQUENCY(E4:E12,{"","#N/A"}) gives answer #N/A

Any help is highly appreciated as always.

Tim
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default countif with multiple criteria

Based on your sample data all being positive values:

=COUNTIF(E4:E12,"0")

If there might be negative values:

=COUNT(E4:E12)-COUNTIF(E4:E12,0)

--
Biff
Microsoft Excel MVP


"Tim" wrote in message
...
Hi ALL,

In cells E4:E12 have the next data:

80
0
80
#N/A
300
50

100
250

Need COUNTIF formula to count the number of not empty cells different of 0
and #N/A in the range E4:E12. The right answer should be 6.

Tried next formulas with no success:
=COUNTIF(E4:E12,"<""")-COUNTIF(E4:E12,"<#N/A") gives me as answer 1
which
obviously is wrong.
=SUMPRODUCT(--(E4:E12<""),--(E4:E12<"#N/A")) gives me as answer #N/A

=FREQUENCY(E4:E12,{"","#N/A"}) gives answer #N/A

Any help is highly appreciated as always.

Tim



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default countif with multiple criteria

Simple and perfect.
Thank you Biff!!!

Tim




"T. Valko" wrote:

Based on your sample data all being positive values:

=COUNTIF(E4:E12,"0")

If there might be negative values:

=COUNT(E4:E12)-COUNTIF(E4:E12,0)

--
Biff
Microsoft Excel MVP


"Tim" wrote in message
...
Hi ALL,

In cells E4:E12 have the next data:

80
0
80
#N/A
300
50

100
250

Need COUNTIF formula to count the number of not empty cells different of 0
and #N/A in the range E4:E12. The right answer should be 6.

Tried next formulas with no success:
=COUNTIF(E4:E12,"<""")-COUNTIF(E4:E12,"<#N/A") gives me as answer 1
which
obviously is wrong.
=SUMPRODUCT(--(E4:E12<""),--(E4:E12<"#N/A")) gives me as answer #N/A

=FREQUENCY(E4:E12,{"","#N/A"}) gives answer #N/A

Any help is highly appreciated as always.

Tim




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default countif with multiple criteria

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Tim" wrote in message
...
Simple and perfect.
Thank you Biff!!!

Tim




"T. Valko" wrote:

Based on your sample data all being positive values:

=COUNTIF(E4:E12,"0")

If there might be negative values:

=COUNT(E4:E12)-COUNTIF(E4:E12,0)

--
Biff
Microsoft Excel MVP


"Tim" wrote in message
...
Hi ALL,

In cells E4:E12 have the next data:

80
0
80
#N/A
300
50

100
250

Need COUNTIF formula to count the number of not empty cells different
of 0
and #N/A in the range E4:E12. The right answer should be 6.

Tried next formulas with no success:
=COUNTIF(E4:E12,"<""")-COUNTIF(E4:E12,"<#N/A") gives me as answer 1
which
obviously is wrong.
=SUMPRODUCT(--(E4:E12<""),--(E4:E12<"#N/A")) gives me as answer #N/A

=FREQUENCY(E4:E12,{"","#N/A"}) gives answer #N/A

Any help is highly appreciated as always.

Tim






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
Countif with multiple criteria Paige Excel Discussion (Misc queries) 7 March 12th 08 07:31 PM
Nesting COUNTIF for multiple criteria in multiple columns NeedExcelHelp07 Excel Worksheet Functions 1 December 12th 07 05:47 PM
Countif, Multiple criteria Chris Excel Discussion (Misc queries) 4 September 21st 06 02:57 AM
Countif w/ Multiple Criteria Patrick_KC Excel Worksheet Functions 2 August 9th 05 09:25 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


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