Home 
Search 
Today's Posts 
#1




Using countif on nonconsecutive cells
How do I use the countif on nonconcecutive cells, i.e. I want to know the
number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#2




Using countif on nonconsecutive cells
=SUM(COUNTIF(INDIRECT({"A1:A5","A7","A15:A18"}),1) )
"Marty" wrote: How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#3




Using countif on nonconsecutive cells
If you only have a "few" cells to check:
=(A1=1)+(A5=1)+(A7=1)+(A15=1)+(A18=1) If you have "many" cells to check it depends on the range of numbers that the cells can contain but you use something like this if the lowest possible number is the number 1: =INDEX(FREQUENCY((A1,A5,A7,A15,A18),1),1)  Biff Microsoft Excel MVP "Marty" wrote in message ... How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#4




Using countif on nonconsecutive cells
Non Volatile formula
=COUNTIF(A1:A5,1)+(A7=1)+COUNTIF(A15:A18,1) "Marty" wrote: How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#5




Using countif on nonconsecutive cells
if the lowest possible number is the number 1:
=INDEX(FREQUENCY((A1,A5,A7,A15,A18),1),1) If the lowest possible number is the number 1 that can be reduced to: =FREQUENCY((A1,A5,A7,A15,A18),1) how many cells in a1:a5, a7, a15:a18 contain the value of 1. Also, due to my poor eyesight I didn't notice that A1:A5 and A15:A18 were ranges but that doesn't make any difference: =FREQUENCY((A1:A5,A7,A15:A18),1)  Biff Microsoft Excel MVP "T. Valko" wrote in message ... If you only have a "few" cells to check: =(A1=1)+(A5=1)+(A7=1)+(A15=1)+(A18=1) If you have "many" cells to check it depends on the range of numbers that the cells can contain but you use something like this if the lowest possible number is the number 1: =INDEX(FREQUENCY((A1,A5,A7,A15,A18),1),1)  Biff Microsoft Excel MVP "Marty" wrote in message ... How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#6




Using countif on nonconsecutive cells
I think you mistook some of the OP's colons for commas, Biff.
 David Biddulph "T. Valko" wrote in message ... If you only have a "few" cells to check: =(A1=1)+(A5=1)+(A7=1)+(A15=1)+(A18=1) If you have "many" cells to check it depends on the range of numbers that the cells can contain but you use something like this if the lowest possible number is the number 1: =INDEX(FREQUENCY((A1,A5,A7,A15,A18),1),1)  Biff Microsoft Excel MVP "Marty" wrote in message ... How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
#7




Using countif on nonconsecutive cells
Yes, I can barely see to read anymore late at night!
Sitting in front of a computer monitor all day long is not good for your eyesight!  Biff Microsoft Excel MVP "David Biddulph" <groups [at] biddulph.org.uk wrote in message ... I think you mistook some of the OP's colons for commas, Biff.  David Biddulph "T. Valko" wrote in message ... If you only have a "few" cells to check: =(A1=1)+(A5=1)+(A7=1)+(A15=1)+(A18=1) If you have "many" cells to check it depends on the range of numbers that the cells can contain but you use something like this if the lowest possible number is the number 1: =INDEX(FREQUENCY((A1,A5,A7,A15,A18),1),1)  Biff Microsoft Excel MVP "Marty" wrote in message ... How do I use the countif on nonconcecutive cells, i.e. I want to know the number of certain cells in worksheet that contain a specific value. For instance, how many cells in a1:a5, a7, a15:a18 contain the value of 1.  Marty 
Reply 
Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Forum  
=COUNTIF & how to make it apply to consecutive cells  Excel Worksheet Functions  
Countif non consecutive columns  New Users to Excel  
Using Countif to Count Consecutive Relative Increases in Numbers  Excel Discussion (Misc queries)  
Countif in nonconsecutive cells  Excel Discussion (Misc queries)  
sumif/countif on nonconsecutive colums  array?  Excel Worksheet Functions 