Forum Discussion
LisaSingleton
Oct 29, 2024Brass Contributor
Counting mix of text and numbers
I'm currently using this formula: =COUNT('All Defects'!A:A) to count cells that contain a numeric value. How do I revise this formula to count a mix of text and numbers?
- Oct 30, 2024
Then use something like
=COUNTA('All Defects'!A2:A10000)
or if you prefer
=COUNTA('All Defects'!A:A)-1
Harun24HR
Oct 30, 2024Bronze Contributor
LisaSingleton As Hans stated, you can use COUNTA() to count everything but it will also count empty string returned by any function. To get rid from that situation you can use-
=SUM(--('All Defects'!A:A<>""))Or COUNTA() like-
=COUNTA('All Defects'!A:A)
- LisaSingletonOct 30, 2024Brass ContributorThanks! Both of these formulas count the defects but also add the column heading.
- HansVogelaarOct 30, 2024MVP
Then use something like
=COUNTA('All Defects'!A2:A10000)
or if you prefer
=COUNTA('All Defects'!A:A)-1
- LisaSingletonOct 30, 2024Brass ContributorThese both worked! Thanks!