Formula

Evie76

New Member
Joined
Jan 17, 2022
Messages
36
Office Version
  1. 365
Platform
  1. Windows
I have 2 formulas that do what i need them to do separately

=IF(COUNTIF(C3:C20, "Critical") = COUNTA(C3:C20), 0, IF(OR(COUNTIF(C3:C20, "N/A") > 0, COUNTIF(C3:C20, "") > 0), 0.79, 0.79 - (COUNTIF(C3:C20, "Critical") - 1) * 0.0465))

=IF(COUNTIF(C3:C20, "Critical") = COUNTA(C3:C20), 0, IF(OR(COUNTIF(C3:C20, "N/A") > 0, COUNTIF(C3:C20, "") > 0), 0.79, 1 - (COUNTIF(C3:C20, "No") / 18) * 0.2))

I've tried multiple ways of trying to put them together but it is just not working

I have a score sheet with 18 questions with answers yes, no, critical, and N/A answers.

If all answers are yes then the percentage needs to be 100%
if all the answers are no it needs to show 80%,
N/A no change in the percentage.
If all are answered as critical the percentage is 0%.
If only one question is answered as critical then the percentage drops to 79% and keeps dropping for every critical answer there is with the last one reaching 0%

can anyone help
 
Thank you so much for all your help, the first one works perfectly.
My pleasure, this was one of the more enjoyable excel challenges I have had in a while. I thought my formula in post #6 was pretty nifty, but it didn't suit your needs.

And regarding the last two, I thought the last one would have been the best solution. The one in post #18 doesn't give any credit for the first yes, I think.
(please test all your scenarios.)

Regardless, I am very pleased to have helped you find a solution here.

Best Wishes!
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have another challenge if you are up for it.
Now that the I’m able to calculate the percentage (with the formula you gave me) for each call assessed call which there are 6 of them. I need a formula to work out the following.
if all 6 calls are at 100% = 100%
If all 6 calls are between 80% and 99% = 80%
if 5 calls are between 80% and 99% and 1 call at 100% = 84%
if 4 calls are between 80% and 99% and 2 call at 100% = 88%
if 3 calls are between 80% and 99% and 3 call at 100% = 92%
if 2 calls are between 80% and 99% and 4 call at 100% = 95%
if 1 call is between 80% and 99% and 5 call at 100% = 99%
and
If all 6 calls are between 79% and 0% = 0%
If 5 calls are between 79% and 0% = 15%
If 5 calls are between 79% and 0% = 30%
If 5 calls are between 79% and 0% = 45%
If 5 calls are between 79% and 0% = 60%
If 5 calls are between 79% and 0% = 79%






Screenshot 2024-02-17 021459.png


the percentages are on C21:H21

I hope it makes sense, it's early hours of the morning and I have been trying to work it out since I got the other formula, so I hope it makes sense.
 
Upvote 0
How do you determine the % to use in the last 5 of the 2nd group? Is it supposed to be 5, 4, 3, 2, 1?
 
Upvote 0
Does this look like what you want:


Book1
ABCDEFGHIJKLMNOP
1Call 1Call 2Call 3Call 4Call 5Call 6HiMedLo
2Scenario 1100.00%100.00%100.00%100.00%100.00%100.00%100.00%600100.00%
3Scenario 286.00%87.00%88.00%89.00%90.00%91.00%80.00%06080.00%
4Scenario 3100.00%86.00%87.00%88.00%89.00%90.00%84.00%15084.00%
5Scenario 4100.00%100.00%86.00%87.00%88.00%89.00%88.00%24088.00%
6Scenario 5100.00%100.00%100.00%86.00%87.00%88.00%92.00%33092.00%
7Scenario 6100.00%100.00%100.00%100.00%86.00%87.00%95.00%42095.00%
8Scenario 7100.00%100.00%100.00%100.00%100.00%89.00%99.00%51099.00%
9Scenario 818.72%53.88%30.64%38.81%73.84%23.34%0.00%0060.00%
10Scenario 910.19%44.18%39.36%54.44%14.51%81.00%15.00%01515.00%
11Scenario 100.72%27.50%53.73%71.80%82.00%95.00%30.00%02430.00%
12Scenario 117.84%51.97%27.41%84.00%93.00%95.00%45.00%03345.00%
13Scenario 1216.45%51.52%83.00%89.00%98.00%100.00%60.00%13260.00%
14Scenario 132.47%89.00%88.00%92.00%96.00%84.00%79.00%05179.00%
Sheet12
Cell Formulas
RangeFormula
L2L2=LET( calls,$B2:$G2, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,"<"&0.8), CountHi)
M2M2=LET( calls,$B2:$G2, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,"<"&0.8), CountMed)
N2:N14N2=LET( calls,$B2:$G2, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,"<"&0.8), CountLo)
L3:L14L3=LET( calls,$B3:$G3, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,""<0.8), CountHi)
M3:M14M3=LET( calls,$B3:$G3, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,""<0.8), CountMed)
P2:P14P2=LET( calls,$B2:$G2, CountHi,COUNTIF(calls,1), CountMed,COUNTIFS(calls,"<"&1,calls,">="&0.8), CountLo,COUNTIF(calls,"<"&0.8), Score, IF(CountLo>0,ROUND(0.79-((CountLo-1)*0.15)+(IF(CountLo<>1,-0.04,0)),4), IF(CountMed>0,0.8+(CountHi*0.04)+IF(CountHi>3,-0.01,0), 1)), Score)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:G14Expression=B2<0.8textNO
B2:G14Expression=AND(B2>=0.8,B2<1)textNO
B2:G14Expression=B2=1textNO
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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