b19upj

New Member
Joined
Oct 3, 2014
Messages
28
HI,

I have a question card with 5 questions 1,2,3,4,5 going down column A1, A2, A3, A4, A5.
I would like to work out the percentage of the score where the answers can be from 1-5 in column B next to its respective question number. BUT the questions can also be answered 0 if not applicable and i don't want that answer to be included in the percentage calculation.
So if i get the following results for each question 5,5,5,5,5 it will = 100%
but if i get 0,5,0,5,5 it should also = 100% (as the 0 should not be counted in the calculation).

Hope that make sense
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Fishboy

Well-known Member
Joined
Feb 13, 2015
Messages
4,261
Try this:

=SUM(B1:B5)/(COUNTIF(B1:B5,">"&0)*5)

Set the format of this cell to be percentage with zero decimals.
 

b19upj

New Member
Joined
Oct 3, 2014
Messages
28
My mistake, i had wired it into my spreadsheet wrongly.
This formula works perfectly.

Many thanks!!!!
 

Watch MrExcel Video

Forum statistics

Threads
1,123,295
Messages
5,600,780
Members
414,405
Latest member
Zaurb

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
Top