Help with IF ( AND and MAX

rubybegonia

New Member
Joined
Sep 4, 2012
Messages
29
Here is my formula currently that is returning a statement of FALSE:

=IF(AND(H5>=25,H5<=29),"Oranges",IF(AND(H5>=30,H5<=34),"Apples",IF(AND(H5>=35),"Bananas",IF(H5=MAX(H:H),"WINNER!!"))))

Here is what I'm wanting it to do:

PointsAward
35+Bananas
30-34Apples
25-29Oranges
0-24

Max Points
(blank)

WINNER!!

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


I've gone over and over this equation for a day, and cannot get it to function properly. Too many arguments, too few arguments. I cannot seem to get it right. It seems to actually only calculate the person with the max points as the winner. The rest of the cells are all FALSE. Any help would be greatly appreciated!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I'd put a small lookup table somewhere, like this:

ABCDEFGHI
1ScorePrize
20
325Oranges
430Apples
535BananasAmy0
6Bob1
7Cindy24
8Doug25Oranges
9Elaine26Oranges
10Frank30Apples
11Gail31Apples
12Hank35Bananas
13Iris38Bananas
14Jack55Winner!!
15

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet14

Worksheet Formulas
CellFormula
I5=IF(H5=MAX($H$5:$H$14),"Winner!!",VLOOKUP(H5,$A$2:$B$5,2))&""

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



You could incorporate the points/awards into the formula, but it would be bulkier.

Hope this helps.
 
Upvote 0
Excel 2010
AB
1PointsAward
224
336Bananas
438Winner!!
530Apples

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B2=IF(A2=MAX(A:A),"Winner!!",LOOKUP(A2,{0,25,30,35},{"","Oranges","Apples","Bananas"}))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Maybe:
Code:
=IF(H5=MAX(H:H),"WINNER!!",IF(AND(H5>=25,H5<=29),"Oranges",IF(AND(H5>=30,H5<=34),"Apples",IF(AND(H5>=35),"Bananas",""))))
 
Upvote 0
I do have a range i can use called 'incentives' and it looks like this:

PointsIncentive Award
35Bananas
30Apples
25Oranges
0

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,350
Messages
6,124,431
Members
449,158
Latest member
burk0007

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