BlackieHamel
Board Regular
- Joined
- May 9, 2014
- Messages
- 93
I have a questionnaire being filled out by 10 respondents, and I want to limit the word count of the replies. Through some googling, I've found this formula for counting the words in a cell:
What I would like to do, on each of 70 rows of a spreadsheet, is to specify in Column A the max word count, and then use conditional formatting to highlight any cell whose count exceeds that limit. My first problem is to get rid of those three "A2" references, since I want to reference the current cell -- and I'm not sure how to do that.
Can you help? Thanks.
Blackie
Code:
=IF(LEN(TRIM(A2))=0,0,LEN(TRIM(A2))-LEN(SUBSTITUTE(A2," ",""))+1)
What I would like to do, on each of 70 rows of a spreadsheet, is to specify in Column A the max word count, and then use conditional formatting to highlight any cell whose count exceeds that limit. My first problem is to get rid of those three "A2" references, since I want to reference the current cell -- and I'm not sure how to do that.
Can you help? Thanks.
Blackie