ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do I compare occurances of countif of two values (https://www.excelbanter.com/excel-discussion-misc-queries/33649-how-do-i-compare-occurances-countif-two-values.html)

Sea Jay

how do I compare occurances of countif of two values
 
How do I use Greater than and less than operators in conjuction with a
formatted cell using year 'yy' to count two particular ages age brakets
the help formuala uses a - sign and this appears to subtract the two countif
statement products

Bob Phillips

I guess you mean

=SUMPRODUCT(--(YEAR(A2:A100=2000)),--(YEAR(A2:A100<=2002)))

assuming A2:A100 holds dates

--
HTH

Bob Phillips

"Sea Jay" wrote in message
...
How do I use Greater than and less than operators in conjuction with a
formatted cell using year 'yy' to count two particular ages age brakets
the help formuala uses a - sign and this appears to subtract the two

countif
statement products





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

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