ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counif with different cells, not a range (https://www.excelbanter.com/excel-discussion-misc-queries/61369-counif-different-cells-not-range.html)

Anthony Slater

Counif with different cells, not a range
 
How can I count all the the 'zeros' from different cells such as A1, D1, G1, H1

TIA

Bob Phillips

Counif with different cells, not a range
 
Try this

=SUMPRODUCT(--(COUNTIF(OFFSET(1:1,0,{0,3,6,7},1,1),0)))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Anthony Slater" wrote in message
...
How can I count all the the 'zeros' from different cells such as A1, D1,

G1, H1

TIA




Anthony Slater

Counif with different cells, not a range
 
Thanks Bob

That worked a treat...

Have a good Christmas

"Bob Phillips" wrote:

Try this

=SUMPRODUCT(--(COUNTIF(OFFSET(1:1,0,{0,3,6,7},1,1),0)))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Anthony Slater" wrote in message
...
How can I count all the the 'zeros' from different cells such as A1, D1,

G1, H1

TIA






All times are GMT +1. The time now is 03:39 PM.

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