Working out a percentage when a total amount changes.

28creation

Board Regular
Joined
Oct 13, 2014
Messages
124
Hi all,

I'm producing a spreadsheet for work & need a percentage worked out...

I have 12 boxes with drop down options of 1-5, with the percentage box at the bottom working out the result based on a possible total of 60. All 5s = 60, so 100%.

This was straightforward, but I've now had to include N/A so the dropdown reads:

N/A
1
2
3
4
5

What can I do with the percentage box so it tells the user the correct result based on a possible new total, ie for every N/A that's selected it brings the total down by 5.

For example, 6x 5 = 30, 6x N/A, so still 100%.

Any thoughts?

Thanks in advance.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thanks for this but it doesn't quite work as I want it to.

When I have 12 5s it only gives 50% instead of 100%.

And...

When I select an N/A it changes the percentage.
 
Upvote 0
Ok so what formula are you using and I presume they are in A1:A12?
 
Upvote 0
They are in K8:K31 (2 boxes are merged, so K8 & 9 are one box).


=SUM(K8:K31)/SUMPRODUCT(--(K8:K31<>"N/A")*5)


Thanks.
 
Upvote 0
Ok it looks like you have spaces between your cells? Maybe this then:

=SUM(A2:A24)/SUMPRODUCT(ISNUMBER(A2:A24)*5)
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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