ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count letters (https://www.excelbanter.com/excel-discussion-misc-queries/33635-count-letters.html)

JIM.H.

Count letters
 
Hello,

In the range of A1-K1, I have letters A, B, C, D, F in the cells and I need
to count how many A, and B, and C, €¦ are available?
How can I do this?
Thanks


JMB

=COUNTIF(A1:K1,"A")

"JIM.H." wrote:

Hello,

In the range of A1-K1, I have letters A, B, C, D, F in the cells and I need
to count how many A, and B, and C, €¦ are available?
How can I do this?
Thanks


JIM.H.

Thanks for reply. I actually need to count A, A-, B, B-, I seems when it
counts A, it includes A- too. How can I avoid it?

"JMB" wrote:

=COUNTIF(A1:K1,"A")

"JIM.H." wrote:

Hello,

In the range of A1-K1, I have letters A, B, C, D, F in the cells and I need
to count how many A, and B, and C, €¦ are available?
How can I do this?
Thanks


Ragdyer

Are you sure?

That Countif formula *should not* count "A-" as an "A".

How are the letters being entered into the cells?
Are they being keyed in, or are they the returns of a formula?

Is there *only* one letter in a cell?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"JIM.H." wrote in message
...
Thanks for reply. I actually need to count A, A-, B, B-, I seems when it
counts A, it includes A- too. How can I avoid it?

"JMB" wrote:

=COUNTIF(A1:K1,"A")

"JIM.H." wrote:

Hello,

In the range of A1-K1, I have letters A, B, C, D, F in the cells and I

need
to count how many A, and B, and C, €¦ are available?
How can I do this?
Thanks



Max

=COUNTIF(A1:K1,"A")

As is, JMB's suggested formula works ok for me.
It doesn't pick up the "A-", only the "A".
Perhaps try it again?
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----




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

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