Scottsdale
New Member
- Joined
- Aug 22, 2024
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
I have 6 cells using columns (K2 to P2) that may contain a number followed by a one letter. Eg. 3G or maybe 16B. This number/letter is a child's age and gender: G = girl, B = boy. I need one formula to count the cells if the number is less than 13 and another formula to count the cells if the number is greater than 12.
I've tried using these COUNTA formulas:
=COUNTA(K2:P2;"<13")
=COUNTA(K2:P2;">12")
...but if 3 cells contain data, it returns a count of 4 cells, which is wrong.
Any suggestions? Splitting the age/gender into two columns (though easy) is not an option.
Cheers,
Scott
I've tried using these COUNTA formulas:
=COUNTA(K2:P2;"<13")
=COUNTA(K2:P2;">12")
...but if 3 cells contain data, it returns a count of 4 cells, which is wrong.
Any suggestions? Splitting the age/gender into two columns (though easy) is not an option.
Cheers,
Scott