ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF (https://www.excelbanter.com/excel-discussion-misc-queries/139200-countif.html)

EK

COUNTIF
 
I have the following alphanumeric data in a cell:

AA1234
BA1234
AA4567
AA2345
AD1234
---------
3 <- formula?
---------

I would like to know the formula to count the number of times data starting
with AA appear in a column. In this case, the result would be 3.

Thanks,
EK

Roger Govier

COUNTIF
 
Hi

Try
=SUMPRODUCT(--(LEFT(A1:A20,2)="AA"))

--
Regards

Roger Govier


"EK" wrote in message
...
I have the following alphanumeric data in a cell:

AA1234
BA1234
AA4567
AA2345
AD1234
---------
3 <- formula?
---------

I would like to know the formula to count the number of times data
starting
with AA appear in a column. In this case, the result would be 3.

Thanks,
EK




RagDyeR

COUNTIF
 
Another way:

=COUNTIF(A1:A5,"AA*")
--

HTH,

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


"EK" wrote in message
...
I have the following alphanumeric data in a cell:

AA1234
BA1234
AA4567
AA2345
AD1234
---------
3 <- formula?
---------

I would like to know the formula to count the number of times data starting
with AA appear in a column. In this case, the result would be 3.

Thanks,
EK



Roger Govier

COUNTIF
 
Much better, Rick!

--
Regards

Roger Govier


"RagDyeR" wrote in message
...
Another way:

=COUNTIF(A1:A5,"AA*")
--

HTH,

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


"EK" wrote in message
...
I have the following alphanumeric data in a cell:

AA1234
BA1234
AA4567
AA2345
AD1234
---------
3 <- formula?
---------

I would like to know the formula to count the number of times data
starting
with AA appear in a column. In this case, the result would be 3.

Thanks,
EK





RagDyeR

COUNTIF
 
It would make Harlan happy, with less function calls!<bg
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Roger Govier" wrote in message
...
Much better, Rick!

--
Regards

Roger Govier


"RagDyeR" wrote in message
...
Another way:

=COUNTIF(A1:A5,"AA*")
--

HTH,

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


"EK" wrote in message
...
I have the following alphanumeric data in a cell:

AA1234
BA1234
AA4567
AA2345
AD1234
---------
3 <- formula?
---------

I would like to know the formula to count the number of times data
starting
with AA appear in a column. In this case, the result would be 3.

Thanks,
EK








All times are GMT +1. The time now is 06:17 AM.

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