CREATE A FORMULA TO ADD HOW MANY TIMES THE LETTER A APPEARS IN A COLUMN OF CELLS

%3CLINGO-SUB%20id%3D%22lingo-sub-2944956%22%20slang%3D%22en-US%22%3ECREATE%20A%20FORMULA%20TO%20ADD%20HOW%20MANY%20TIMES%20THE%20LETTER%20A%20APPEARS%20IN%20A%20COLUMN%20OF%20CELLS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2944956%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20excel%20spread%20sheet%20that%20has%20columns%20of%20data%20and%20I%20simply%20want%20to%20create%20a%20formula%20in%20a%20cell%20that%20will%20add%20all%20the%20times%20the%20letter%20A%20appears%20in%20a%20range%20of%20cells%20in%20a%20given%20column.%20Can%20someone%20help%20me%20with%20that%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EAl%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2944956%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2945021%22%20slang%3D%22en-US%22%3ERe%3A%20CREATE%20A%20FORMULA%20TO%20ADD%20HOW%20MANY%20TIMES%20THE%20LETTER%20A%20APPEARS%20IN%20A%20COLUMN%20OF%20CELLS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2945021%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1132679%22%20target%3D%22_blank%22%3E%40azeoli1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DSUM(LEN(%3CEM%3Erange%3C%2FEM%3E))-SUM(LEN(SUBSTITUTE(%3CEM%3Erange%3C%2FEM%3E%2C%22A%22%2C%22%22)))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20don't%20have%20Microsoft%20365%20or%20Office%202021%2C%20confirm%20the%20formula%20with%20Ctrl%2BShift%2BEnter.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have created a excel spread sheet that has columns of data and I simply want to create a formula in a cell that will add all the times the letter A appears in a range of cells in a given column. Can someone help me with that?

Thanks,

Al 

4 Replies

@azeoli1 

=SUM(LEN(range))-SUM(LEN(SUBSTITUTE(range,"A","")))

 

If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.

I figured a simpler formula: COUNTIF(B48:B141, “A”). Thanks anyway Hans.

@azeoli1959 

 

Your formula will return the number of cells whose value equals "A".

You asked for a formula that returns the number of times the letter "A" occurs. I interpreted this to mean that if a cell contains "ABACADABRA", it should contribute 5 to the result since there are 5 A's...

I see. I should have been more clear. I’m my worksheet the column I’m trying to extract this information from only has one letter (A-M) in each cell. Thanks!