I don't even know if this is possible.
I have a cell that is percentage of a task completed. It counts the yes's in a range and returns percentage complete. When all of the cells are marked “Yes” it says 100%.
Original formula for Over All %:
=COUNTIF(C10:C33, “Yes”)/COUNTA(C10:C33)
Now there is a variant, where you can either enter yes forC10:C20 or it yes for C21:C24. But never will you enter yes in both ranges. To Throw an additional curve ball C25:C33 always need to be figured in. I split up the problem into something like this and have hidden rows 10,23 & 28 for the task set calculations.
Over All %:
=SUM(C10,C23,C28)/2
Task Set 1%:
=COUNTIF(C11:C21, "Yes")/COUNTA(C11:C21)
Task Set 2%:
=COUNTIF(C24:C26, "Yes")/COUNTA(C24:C26)
Task Set 3%:
=COUNTIF(C29:C36, "Yes")/COUNTA(C29:C36)
It does work, but is there any way to consolidate this into a single formula?
I have a cell that is percentage of a task completed. It counts the yes's in a range and returns percentage complete. When all of the cells are marked “Yes” it says 100%.
Original formula for Over All %:
=COUNTIF(C10:C33, “Yes”)/COUNTA(C10:C33)
Now there is a variant, where you can either enter yes forC10:C20 or it yes for C21:C24. But never will you enter yes in both ranges. To Throw an additional curve ball C25:C33 always need to be figured in. I split up the problem into something like this and have hidden rows 10,23 & 28 for the task set calculations.
Over All %:
=SUM(C10,C23,C28)/2
Task Set 1%:
=COUNTIF(C11:C21, "Yes")/COUNTA(C11:C21)
Task Set 2%:
=COUNTIF(C24:C26, "Yes")/COUNTA(C24:C26)
Task Set 3%:
=COUNTIF(C29:C36, "Yes")/COUNTA(C29:C36)
It does work, but is there any way to consolidate this into a single formula?