Need help with determining a correct formula!

%3CLINGO-SUB%20id%3D%22lingo-sub-2022730%22%20slang%3D%22en-US%22%3ENeed%20help%20with%20determining%20a%20correct%20formula!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2022730%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20close%20to%20150%20cells%20that%20may%20contain%20a%20number.%20I%20would%20like%20to%20create%20a%20formula%20that%20counts%20all%20of%20the%20cells%20that%20contain%20a%20number.%20In%20simplistic%20terms%2C%20if%2012%20of%20the%20150%20cells%20have%20some%20sort%20of%20%23%2C%20I%20would%20like%20the%20formula%20to%20calculate%20the%20%23%2012.%20Can%20anyone%20give%20me%20some%20advice%20as%20to%20how%20to%20accomplish%20this%3F%20Thanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2022730%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2022782%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20determining%20a%20correct%20formula!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2022782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F914389%22%20target%3D%22_blank%22%3E%40Purplepacman%3C%2FA%3E%26nbsp%3BThat%20may%20be%20as%20simple%20as%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DCOUNT(range)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ewhere%20range%20is%20the%20range%20of%20cells%20you%20want%20to%20test.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2022783%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20determining%20a%20correct%20formula!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2022783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F914389%22%20target%3D%22_blank%22%3E%40Purplepacman%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20COUNT%20function%20returns%20the%20number%20of%20cells%20with%20a%20numeric%20value%2C%20so%20you%20can%20use%20a%20formula%20such%20as%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DCOUNT(A1%3AA150)%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have close to 150 cells that may contain a number. I would like to create a formula that counts all of the cells that contain a number. In simplistic terms, if 12 of the 150 cells have some sort of #, I would like the formula to calculate the # 12. Can anyone give me some advice as to how to accomplish this? Thanks in advance.

4 Replies

@Purplepacman That may be as simple as:

 

=COUNT(range)

where range is the range of cells you want to test. 

@Purplepacman 

The COUNT function returns the number of cells with a numeric value, so you can use a formula such as

 

=COUNT(A1:A150)

Super easy! Thank you @Riny_van_Eekelen 

Super easy! Thank you @Hans Vogelaar