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?
 
Hi Donna,

I changed your points range to the following (G5:I11):

Lower boundUpper boundPoints
9510025
859420
708415
506910
30495
1290

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

Assuming your scores are in B and you're populating the points in C against each score, you could try the following:

=SUMIFS($I$6:$I$11,$G$6:$G$11,"<="&B6,$H$6:$H$11,">="&B6)

OR

=SUMPRODUCT(($G$6:$G$11<=B6)*($H$6:$H$11>=B6)*$I$6:$I$11)

OR

=INDEX($I$6:$I$11,MATCH(B6,$H$6:$H$11,-1))

Hope this helps.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,216,116
Messages
6,128,930
Members
449,479
Latest member
nana abanyin

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