COUNTIF question - counting cells which contain a specific letter...

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
81
Office Version
2010
Platform
Windows
Is there a way to use the COUNTIF function to count cells if they contain a single letter - for example below, when a cell has the letter A, the count would be 3 in the top row

3
12345
A4567
3546
23A78
765
2A6A8

<tbody>
</tbody>

I thought it would be easy using wildcards, but is doesn't seem to work... and I think having two letters in the cell makes things worse!

Thanks for helping!
 
Last edited:

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,940
Office Version
2010
Platform
Windows
Maybe:
Excel Workbook
ABC
13
23
312345
4A4567
53546
623A78
7765
82A6A8
Sheet1
 

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
81
Office Version
2010
Platform
Windows
I tried that - but forgot the "" lol... thank you!

Is there a way to count cells which contain a number of different letters, or even any kind of alphabetical character?
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,940
Office Version
2010
Platform
Windows
I tried that - but forgot the "" lol... thank you!

Is there a way to count cells which contain a number of different letters, or even any kind of alphabetical character?
You are welcome - thanks for the reply. Can you be a bit more descriptive on your new question and maybe provide a few examples of what you want to do?
 

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
81
Office Version
2010
Platform
Windows
Yup!

5
123456
12A34B
1CC345
1ABCD5
111222
ABCDEF
123123
123EF6

<tbody>
</tbody>


So in the column, there are 5 cells which contain letters - is there a way to use COUNTIF to find this value?
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,030
Office Version
2010
Platform
Windows
Assuming all of the cells are not formatted as Text...

=COUNTA(A2:A9)-COUNT(A2:A9)
 

XOR LX

Well-known Member
Joined
Jul 2, 2012
Messages
4,517
Assuming all of the cells are not formatted as Text...

=COUNTA(A2:A9)-COUNT(A2:A9)
If your assumption is correct then we can also use:

=COUNTIF(A2:A9,"?*")

though note that your count will also include any null strings ("") within the range, should there be any.

Regards
 

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
81
Office Version
2010
Platform
Windows
Yes, the formatting is Text... dangit!

Is it still possible to do somehow?
 

Watch MrExcel Video

Forum statistics

Threads
1,102,086
Messages
5,484,586
Members
407,457
Latest member
Zazu_0420

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top