ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   CountIF question (https://www.excelbanter.com/excel-worksheet-functions/184224-countif-question.html)

NoodNutt

CountIF question
 
Hi all

Can anyone help with the correct syntax for tha following please.

I need the formula to count all the cells in this exact range that are not
blank.


=countif(not(blank(B8:B11,I7,I9:I11,P7,P8,P10,P11, W7:W9,W11,AD7,AD8,AD9,AD10)))

TIA
Mark.



Gav123

CountIF question
 
Hi Mark,

Maybe...

=COUNTA(B8:B11,I7,I9:I11,P7,P8,P10,P11,W7:W9,W11,A D7,AD8,AD9,AD10)

Hope this helps,

Gav.

"NoodNutt" wrote:

Hi all

Can anyone help with the correct syntax for tha following please.

I need the formula to count all the cells in this exact range that are not
blank.


=countif(not(blank(B8:B11,I7,I9:I11,P7,P8,P10,P11, W7:W9,W11,AD7,AD8,AD9,AD10)))

TIA
Mark.




[email protected]

CountIF question
 
Mark

Highligh all the cells you are counting (use the control-left click to
highlight the discontinuous range). Then name the discontinuous range
e.g. "test" (Insert-Name-Define).

Then use this formula:

=counta(test)

Naming the range is a little messy, but, the formula is easy after you
have defined the name.

Goodl luck.

Ken
Norfolk, Va


On Apr 18, 3:09*am, "NoodNutt" wrote:
Hi all

Can anyone help with the correct syntax for tha following please.

I need the formula to count all the cells in this exact range that are not
blank.

=countif(not(blank(B8:B11,I7,I9:I11,P7,P8,P10,P11, W7:W9,W11,AD7,AD8,AD9,AD1*0)))

TIA
Mark.



Dave

CountIF question
 
Hi Gav,
Jumping in here, on a related issue:
COUNT and COUNTA can handle multiple ranges like the one below, but I
haven't managed to do that with COUNTIF. When I insert the comma to separate
each range, the function seems to see the following range as the condition
thingy.
Is it possible to use multiple ranges inside the COUNTIF function?
Dave.

=COUNTA(B8:B11,I7,I9:I11,P7,P8,P10,P11,W7:W9,W11,A D7,AD8,AD9,AD10)



Dave

CountIF question
 
Hi Ken,
Thanks! Why don't I think of these things?
Dave.

NoodNutt

CountIF question
 
Thx everyone

Appreciate the input & help

Regards
Mark.




All times are GMT +1. The time now is 08:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com