Counting the number of times a letter appears in a column.

Cubicks

New Member
Joined
Dec 3, 2004
Messages
38
I have a column that has anywhere from 1-9 digit codes that are all letters. Ex. A1 = NNUBR, A2 = NBBBBB, A3 = UNWWNJK, and so forth.

Let's say I wanted to have a formula that counted the total number of times the letter "N" appears in Column A. I am having trouble figuring out what formula to use. I thought one of the COUNT, COUNTA, or COUNTIF functions would work but they don't seem to be.

I would imagine that I am missing something simple or maybe I am using the wrong Functions all together. If you can let me know what function would work, it would be greatly appreciated.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
=SUMPRODUCT(LEN($A$2:$A$100)-LEN(SUBSTITUTE($A$2:$A$100,B2,"")))

where B2 houses the letter you want to count.
 

Forum statistics

Threads
1,171,729
Messages
5,877,155
Members
433,235
Latest member
adhollan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top