Forum Discussion
Calculate Percentage of cell range of cells with value
- Mark_regJun 22, 2018Brass Contributor
Hi Jan Karel,
Thank you for being willing to look at my problem. :)
I hope this example makes sense. So if 10 classes happened the percentage of being present should be calculated based on 10 classes. If 15 classes happened the percentage should be based on that. etc.
Here P stands for Present, and A for Absent.
In my spreadsheet I will use 'A', 'P' and 'WN' (Without Notice). However, as all the cells that 'appear' blank will actually have a value of '0' because the original cells have reference formulas, anything as not '0' could be counted as a 'lesson'.
Does that make sense?
Kind regards,
Martin
- Asghar ShahJun 22, 2018Copper Contributor
Do you mean that one "p" is equal to 10%? if there are 9ps then the percentage should be 90%? if yes then we can solve this problem with the help of countif function.
- Asghar ShahJun 22, 2018Copper ContributorThis formula can be used:
=COUNTIF(F6:F26,"p")*10&"%"
the answer will be in this case 70%.