Jun 29 2021 03:05 PM
Hello Community.
I was wondering if there was a function in Excel that can help me with the current issue:
Instead of counting how many "yes" responses there are in the file, I wish to know how many ROWS have at least ONE occurence of the "yes". I'm essentially trying to analyze in a quicker fashion how many individuals responded to any trauma measure/prompt. So the number of yes's aren't what is needed here.
Any help would be lovely!
Jun 29 2021 03:14 PM
I'd use a helper column. Let's say the replies are in B2:Z500.
In an empty column, for example column AB, enter the following formula in row 2:
=COUNTIF(B2:Z2,"Yes")
Fill down to row 500 (the last row with data).
The number of rows with at least one "Yes" is
=COUNTIF(AB2:AB500,">0")
Jun 30 2021 11:17 AM
Jun 30 2021 09:11 PM
@VictoriaIwinski alternatively a single equation could be:
=LET(rng,A1:M50,SUM(--(MMULT(--(rng="yes"),SEQUENCE(COLUMNS(rng),,1,0))>0)))