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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
=SUMPRODUCT(LEN($A$2:$A$100)-LEN(SUBSTITUTE($A$2:$A$100,B2,"")))

where B2 houses the letter you want to count.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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
Back
Top