#1   Report Post  
Posted to microsoft.public.excel.misc
HELP
 
Posts: n/a
Default COUNTIF

I have a column with %'s. There are 2983 values. I want to do a countif
statement that shows the values 0% and <=10%. When I do a
countif(data!bc:bc,"0") there are 391. if I do a countif(data!bc:bc,"<=10")
it shows 2598. But there are only 6 values that are 0% and <10%. When I type
in (countif(data!bc:bc,"0<=10") it will give me 1. Any help on how to write
this formula to get me the count or number of values that are 0 and less
than <=10%.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
Brady
 
Posts: n/a
Default COUNTIF

Help,

In don't think you can use COUNTIF with two criteria (I may be
wrong). Do a search on this newsgroup for "Countif with two criteria"
and I think you will find several answers. I believe SUMPRODUCT is one
valid alternative.

Brady

  #3   Report Post  
Posted to microsoft.public.excel.misc
HELP
 
Posts: n/a
Default COUNTIF



How would i use the sumproduct function?
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default COUNTIF


Try this

=COUNTIF(data!bc:bc,"0%")-COUNTIF(data!bc:bc,"=10%")

If you want to count values that equals to 10%, take the equal sign
away before the 10%

HTH


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=555616

  #5   Report Post  
Posted to microsoft.public.excel.misc
RagDyeR
 
Posts: n/a
Default COUNTIF

You could try combining 2 Countif formulas:

=COUNTIF(BC:BC,"0")-COUNTIF(BC:BC,"10")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"HELP" wrote in message
...


How would i use the sumproduct function?




  #6   Report Post  
Posted to microsoft.public.excel.misc
Dav
 
Posts: n/a
Default COUNTIF


Try sumproduct

sumproduct((a2:a1000)*(a2:a100<0.1))

the percents are still values between 0 and 1 so 10%=0.1

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555616

  #7   Report Post  
Posted to microsoft.public.excel.misc
HELP
 
Posts: n/a
Default COUNTIF

Thank you. Great.

"Dav" wrote:


Try sumproduct

sumproduct((a2:a1000)*(a2:a100<0.1))

the percents are still values between 0 and 1 so 10%=0.1

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=555616


  #8   Report Post  
Posted to microsoft.public.excel.misc
T Kirtley
 
Posts: n/a
Default COUNTIF

If you need two or more criteria you can use array formulas to do the trick.
A formula like:

{=COUNT(IF((A22:A270)*(A22:A27<0.1),1),)}

may work for you. However there are a few important points regarding array
formulas;

First, you enter the formula by pressing the Ctrl^Shift^Enter keys in
combination. not just using the enter key. The brackets in the formula are
not keyed in, they appear automatically when the Ctrl^Shift^Enter combination
is used.

Second, multilple criteria can be used and should be contained in
parentheses. The * operator is used as a logical "AND" and the + operator is
a logical "OR" operation.

Third, array formulas need to be on finite ranges, I do not believe that
selecting entire columns will work as you do in your example, and

Finally, array formulas are very demanding on system resources. You may not
want to use them if you have a very large spreadsheet, but you should be OK
with a couple thousand rows.

Also, as a general rule, you should probably not use the percentage sign in
criteria like you did. I get more reliable results by entering decimal values
in criteria.

For more info, check the article on Chip Pearson's site at
http://www.cpearson.com/excel/array.htm

"HELP" wrote:

I have a column with %'s. There are 2983 values. I want to do a countif
statement that shows the values 0% and <=10%. When I do a
countif(data!bc:bc,"0") there are 391. if I do a countif(data!bc:bc,"<=10")
it shows 2598. But there are only 6 values that are 0% and <10%. When I type
in (countif(data!bc:bc,"0<=10") it will give me 1. Any help on how to write
this formula to get me the count or number of values that are 0 and less
than <=10%.

Thank you

  #9   Report Post  
Posted to microsoft.public.excel.misc
Beat
 
Posts: n/a
Default COUNTIF

Why dont you write the formula as it is?
Sumif() and use as condition ;and(0;<=.1) -
=sumif(data!bc:bc,and(0,<=.1))

"HELP" wrote:

I have a column with %'s. There are 2983 values. I want to do a countif
statement that shows the values 0% and <=10%. When I do a
countif(data!bc:bc,"0") there are 391. if I do a countif(data!bc:bc,"<=10")
it shows 2598. But there are only 6 values that are 0% and <10%. When I type
in (countif(data!bc:bc,"0<=10") it will give me 1. Any help on how to write
this formula to get me the count or number of values that are 0 and less
than <=10%.

Thank you

  #10   Report Post  
Posted to microsoft.public.excel.misc
Andrew Taylor
 
Posts: n/a
Default COUNTIF

Probably because it's not valid syntax..

Beat wrote:
Why dont you write the formula as it is?
Sumif() and use as condition ;and(0;<=.1) -
=sumif(data!bc:bc,and(0,<=.1))

"HELP" wrote:

I have a column with %'s. There are 2983 values. I want to do a countif
statement that shows the values 0% and <=10%. When I do a
countif(data!bc:bc,"0") there are 391. if I do a countif(data!bc:bc,"<=10")
it shows 2598. But there are only 6 values that are 0% and <10%. When I type
in (countif(data!bc:bc,"0<=10") it will give me 1. Any help on how to write
this formula to get me the count or number of values that are 0 and less
than <=10%.

Thank you




  #11   Report Post  
Posted to microsoft.public.excel.misc
Beat
 
Posts: n/a
Default COUNTIF

You're right. Then do it in 2 steps: add 1 column "AND(a10;a1<=.1)" - true
/ false
and the count the "trues" (or sum the % where the column is true)

"Andrew Taylor" wrote:

Probably because it's not valid syntax..

Beat wrote:
Why dont you write the formula as it is?
Sumif() and use as condition ;and(0;<=.1) -
=sumif(data!bc:bc,and(0,<=.1))

"HELP" wrote:

I have a column with %'s. There are 2983 values. I want to do a countif
statement that shows the values 0% and <=10%. When I do a
countif(data!bc:bc,"0") there are 391. if I do a countif(data!bc:bc,"<=10")
it shows 2598. But there are only 6 values that are 0% and <10%. When I type
in (countif(data!bc:bc,"0<=10") it will give me 1. Any help on how to write
this formula to get me the count or number of values that are 0 and less
than <=10%.

Thank you



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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 12:34 AM.

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"