S
Scott Heath
Can COUNTIF look for different text values in a particular string? Students
taking a quiz can choose from 4 options. Two of those options are
acceptable. They could pick "30 minutes" or "1 hour" but not "5 minutes" or
"4 hours". I'd like to tally their correct answers with something like
COUNTIF(D2150,"[30 minutes] or [1 hour]").
I suppose this could be an IF-THEN-ELSE macro, but is there a simpler
approach? Right now, I've reworded the questions so the correct answers
have distinct enough wording that they fit the same COUNTIF value (I made "1
hour" into "60 minutes" and looked for "?0 minutes", thus counting answers
with "30" or "60").
Next time, I may not be so lucky as to have such easily modified values to
track, so I'd like to know how to count up cells that hold one of a set of
strings.
taking a quiz can choose from 4 options. Two of those options are
acceptable. They could pick "30 minutes" or "1 hour" but not "5 minutes" or
"4 hours". I'd like to tally their correct answers with something like
COUNTIF(D2150,"[30 minutes] or [1 hour]").
I suppose this could be an IF-THEN-ELSE macro, but is there a simpler
approach? Right now, I've reworded the questions so the correct answers
have distinct enough wording that they fit the same COUNTIF value (I made "1
hour" into "60 minutes" and looked for "?0 minutes", thus counting answers
with "30" or "60").
Next time, I may not be so lucky as to have such easily modified values to
track, so I'd like to know how to count up cells that hold one of a set of
strings.