Nested IF statement with multiple criteria AND a range

CarrieAWalton

New Member
Joined
Sep 4, 2017
Messages
12
Hi all,

Really hoping you can help with this one.

I have a range of cells (J2:AH2) which all have one of 4 options in: Yes, No, Partially, or N/A.

I want cell I2 to generate a 'score' based on the contents of the cells in the range. So:

If any cell in the range = Yes, count 1, if Partially, count 0.5, if No, count 0, and if N/A don't count it at all (ignore completely).

I then want the resulting score output as a percentage. So if 20 of the 25 cells have either yes, no, or partially in then the total would be divided by 20. If all 25 cells have Y. N. P then the total will be divided by 25.

I hope that makes sense.

I've fumbled about with the IF & COUNTIF functions but it doesn't seem to be working for a range and for multiple criteria together.

I bet it's actually really simple :LOL:
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Never mind, I've figured it out:

Code:
[B]​[/B]=SUM(COUNTIF(J3:AH3,{"Partially","Yes","No"})*{0.5,1,0})/COUNTIF(J3:AH3,"<>N/A")
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,634
Members
449,460
Latest member
jgharbawi

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