SOLVED

Concatenate a count(range) with a string.

%3CLINGO-SUB%20id%3D%22lingo-sub-1558699%22%20slang%3D%22en-US%22%3EConcatenate%20a%20count(range)%20with%20a%20string.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558699%22%20slang%3D%22en-US%22%3E%3CP%3EI%20tried%20%3DCOUNT(a20%3Aa30)%26amp%3B%22%20of%20cities%22and%20got%20%220%20of%20cities%22.%3C%2FP%3E%3CP%3EI%20tried%20%3Dconcatenate(count(a20%3Aa30)%26amp%3B%22%20of%20cities%22)%20and%20got%20%220%20of%20cities%22.%3C%2FP%3E%3CP%3EI%20tried%20%3DCONCATENATE(COUNT(A20%3AA30)%3B%22%20of%20cities%22)%20got%20%220%20of%20cities%22.%3C%2FP%3E%3CP%3EAll%20I%20wanted%20was%20%2211%20of%20cities%22.%3C%2FP%3E%3CP%3EWhat%20is%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1558699%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-1558715%22%20slang%3D%22en-US%22%3ERe%3A%20Concatenate%20a%20count(range)%20with%20a%20string.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558715%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F746074%22%20target%3D%22_blank%22%3E%40MonTor56%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20count%20the%20number%20of%20non-blank%20cells%2C%20use%20COUNTA%20instead%20of%20COUNT%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DCOUNTA(a20%3Aa30)%26amp%3B%22%20of%20cities%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECOUNT%20only%20counts%20numeric%20values%2C%20not%20text%20values.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1558731%22%20slang%3D%22en-US%22%3ERe%3A%20Concatenate%20a%20count(range)%20with%20a%20string.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558731%22%20slang%3D%22en-US%22%3EThat%20was%20the%20trick!%3CBR%20%2F%3EThank%20you%20Hans!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FLINGO-BODY%3E
New Contributor

I tried =COUNT(a20:a30)&" of cities"and got "0 of cities".

I tried =concatenate(count(a20:a30)&" of cities") and got "0 of cities".

I tried =CONCATENATE(COUNT(A20:A30);" of cities") got "0 of cities".

All I wanted was "11 of cities".

What is wrong?

2 Replies

@MonTor56 

If you want to count the number of non-blank cells, use COUNTA instead of COUNT:

 

=COUNTA(a20:a30)&" of cities"

 

COUNT only counts numeric values, not text values.

Best Response confirmed by MonTor56 (New Contributor)
Solution
That was the trick!
Thank you Hans!