Forum Discussion
Countif function
Please help! I'm working on updating an advancement tracker for cub scouts. The worksheet uses the COUNTIF function to count the number of cells that have an A to determine whether to mark the adventure C for complete or P for partial. A simple example: Cast Iron Chef has three requirements but only two need to be completed for the adventure to be considered complete. The formula looks like this: =IF(COUNTIF(E8:E10,"A")>1,"C",IF(COUNTIF(E8:E10,"A")>0,"P"," ")). This formula works great for simple adventures. My problem is with the adventures that have more steps to complete and those steps have sub-steps. How can I create a formula for adventures that have a set number of requirements to complete but depending on which requirements the scout chooses to complete, the total number of A's will vary? Example: First Responder has 8 requirements. The Scout must complete Requirement 1 and at least 5 others. However, Requirement 2 has five sub-steps and Requirement 5 has nine sub-steps. I can't use a simple COUNTIF and count five A's because of the extra steps to complete for Requirements 2 & 5, and I haven't figured out how to rewrite the formula to account for the extra steps. I have Office 365.
20 Replies
Hello,
it's probably best to see this in a sample file. Please mock up a few scenarios and the expected results. The final setup may require some helper columns where the parameters for a formula can be worked out with formulas. It may be a bit more complex than a Countifs function can handle.
Please reply and click Choose Files to upload a sample file.
- Angela JenkinsCopper ContributorHi, Ingeborg.I have attached samples of the two adventures I'm still having problems figuring out. If you can get those two areas to work, I think I should be able to fix the others that I'm having problems with.Thanks for any help you can provide.
Hello again,
looking at sheet 2 of your attached file, I see that you use row 12 to evaluate option A and row 21 to evaluate Option B. Each option has a different set of questions and you evaluate them separately.
The formula in row 22 for the overall evaluation does not look right, though. It should be
=IF(E12=" ",E21,E12)
I'm not qute sure I understand what the challenge is on Sheet 1. Is something not working there?