Why doesn't my If And formula work?

DonnaJoh

New Member
Joined
Apr 3, 2018
Messages
11
Good Morning:

I am trying to utilize the following If And formula but it doesn't seem to be working.

=IF(AND(O8>="95",<="100","25",IF(AND(08>="85",<="94","20",IF(AND(O8>="70",<="84","15",IF(AND(O8>="50",<="69","10",IF(AND(O8>="30",<="49","5",IF(O<="29","0","null")))))))))))

I am trying to display a set value of points for a score with a range.


Score Range=




# of Pts
95to100% 85to94%
70to84% 50to69% 30to49% <=29%
25 20 15 10 5 0

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

How can I fix this?
 

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.
Yes, I tried both options posted and "#Name?" is displayed in both events. The value of O8 is 96% which is tabulated from the following formula:=SUM(Q8:AB8)/COUNT(Q8:AB8)
 
Upvote 0
"#Name?" is displayed in both events.

If you are not using Excel with english language settings then you will need to make the necessary translation for the MATCH() function.


Excel 2013/2016
OP
896%25
Sheet1
Cell Formulas
RangeFormula
P8=5*(MATCH(O8,{0,30,50,70,85,95}/100)-1)
 
Upvote 0
I just tried " =5*(MATCH(O8,{0,30,50,70,85,95}/100)-1)
" and it only displayed a 0 when O9 was 89%. This should have yielded an answer of 20, not 0.
 
Upvote 0
and it only displayed a 0 when O9 was 89%. This should have yielded an answer of 20, not 0

Hi, O8 or O9? - btw it returns 20 for me with 89% in O8.


Excel 2013/2016
OP
889%20
Sheet1
Cell Formulas
RangeFormula
P8=5*(MATCH(O8,{0,30,50,70,85,95}/100)-1)


I am using excel with English language settings :)

I'm guessing the #NAME ? error has resolved itself :confused:
 
Last edited:
Upvote 0
Dahhh...that's it! I tried it in a different cell and did not change the formula to reflect the cell I was now in. Yes, it now works!!! Thank you so very much!!! You all made my day!!!!
 
Upvote 0
Yes the
=5*(
MATCH(O8,{0,30,50,70,85,95}/100)-1
) formula resolved the #NAME ? error problem. Thank you very much!!!
 
Upvote 0
Hi DonnaJoh,

Try the formulas below too:

In O8 and copy down

=IFERROR(AVERAGE(Q8:AB8),"")

In P8 and copy down

=IF(O8="","null",LOOKUP(O8,{0,0;0.3,5;0.5,10;0.7,15;0.85,20;0.95,25}))

NOPQRSTUVWXYZAAABAC
6
7AverageResultData01Data02Data03Data04Data05Data06Data07Data08Data09Data10Data11Data12
865%1046%73%69%37%74%95%95%70%22%
9596%46%32%34%70%32%7%51%52%
10null
1139%511%58%18%56%43%36%19%66%41%
1258%1074%8%64%12%66%89%20%96%89%
1347%526%21%95%100%36%0%56%60%29%
1464%1073%70%64%11%77%84%87%32%82%
1536%533%63%18%21%49%1%60%65%16%
16null
1751%1035%73%10%52%92%20%84%96%1%
18
*********************************************************************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,724
Members
449,465
Latest member
TAKLAM

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