little_johnny
New Member
- Joined
- Jan 29, 2012
- Messages
- 30
Hello,
I am trying to count a range of mixed cells. I use the "*" symbol in my cells to add emphasis to the cell when I am looking through them.
I only want to count the cells that contain TEXT characters (representing names) - but I do not want to count cells with numbers only OR numbers + the asterisk symbol...
As you can see below, some cells contain text only, some contain numbers only, and some contain numbers OR text proceeded with an " * " or " ** " symbol.
If they contain a number, or a number with an asterix, I do not want them to be counted...
I only wish to count the cells that contain any text (essentially a person's name).
Eg:
<tbody>
</tbody>
I understand "*" is used as a wildcard to count text, but I wish to ignore the 4*, 3**, 2*. Any help?
Please note: this example is for illustrative purposes. My cells range in the hundreds, and a cell with a number proceeded with an asterisk (or double asterisk) could be very random (e.g.: 24*, 62*, 158**), so I can't ignore specific number AND "*", if that makes sense..?
Thanks!!
I am trying to count a range of mixed cells. I use the "*" symbol in my cells to add emphasis to the cell when I am looking through them.
I only want to count the cells that contain TEXT characters (representing names) - but I do not want to count cells with numbers only OR numbers + the asterisk symbol...
As you can see below, some cells contain text only, some contain numbers only, and some contain numbers OR text proceeded with an " * " or " ** " symbol.
If they contain a number, or a number with an asterix, I do not want them to be counted...
I only wish to count the cells that contain any text (essentially a person's name).
Eg:
A | |
1 | Bob |
2 | Bob |
3 | Bob |
4 | 1 |
5 | 2 |
6 | 3 |
7 | 4* |
8 | Jane |
9 | Jane |
10 | Jane |
11 | Jane** |
12 | 1 |
13 | 2 |
14 | 3** |
15 | Lucy |
16 | Lucy |
17 | Lucy |
18 | 1 |
19 | 2* |
<tbody>
</tbody>
In this example, I want the answer to be 10 (the 10 names). I put the formula =COUNTIF(A$1:A$20,"*"), but it gives me 13.
I understand "*" is used as a wildcard to count text, but I wish to ignore the 4*, 3**, 2*. Any help?
Please note: this example is for illustrative purposes. My cells range in the hundreds, and a cell with a number proceeded with an asterisk (or double asterisk) could be very random (e.g.: 24*, 62*, 158**), so I can't ignore specific number AND "*", if that makes sense..?
Thanks!!