display results

jmazorra

Well-known Member
Joined
Mar 19, 2011
Messages
715
hello

I am trying to divide H21/h22 on cell i22 and have the result display in i22 as:

example: 7% of wages.

thx
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Thank you:

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

Thanks
 
Upvote 0
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"
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

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.
Go back
Back
Top