I am trying to have cell E8 display the following: 15 or 12% of the total
At the moment I have the following statement on cell E8: =COUNTIF(K6:K127,"=y"). This gives me the count I want (15), but I also want to know what percentage that count is of the total number which is found on E7. So the second formula would be E7/E8, this gives me 22%.
I am now using 3 cells to come up with a result stating: 15 or 22% of the total. How can I combine all formulas so that the statement :"15 or 12% of the total" is calculated and displayed on cell E8
Here are several variations, with the only change being the display of the percentage.
Code:
=COUNTIF(K6:K127,"=y")&" or "&TEXT(COUNTIF(K6:K127,"=y")/COUNTA(K6:K127),"0%")&" of the total"
=COUNTIF(K6:K127,"=y")&" or "&TEXT(COUNTIF(K6:K127,"=y")/COUNTA(K6:K127),"0.00%")&" of the total"
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.