# formula to assign points with an upper limit

#### BethaW

##### New Member
Hello,
I need to assign points to the top 6 placings in a horse show class but I need an upper limit. If there are 5 horses in the class the first place rider gets 5 points, 2nd place gets 4, 3rd gets 3, 4th gets 2, etc. If there are only 3 horses first gets 3, second 2, third 1, etc. However, once there are 6 or more riders the first place gets 6, second 5, third 4, etc. regardless if there are 6 or 100 horses in the class.

Col A lists the riders in the class
Col G has an "x" if they want their points calculated or "n" if they don't
Col J is their class placing...1 thru 6

currently I have the below formula which works great except it keeps going so that if there are 8 horses in the class it gives the first place 8 points and I need it capped at 6.

=IF(AND(G3="x",J3>0),-J3+COUNT(\$A\$3:\$A\$30)+1,(""))

Thank you.

### Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try changing the +COUNT(\$A\$3:\$A\$30)+1 to + MAX(MIN(COUNT(\$A\$3:\$A\$30), 5)+1, 0)

Not sure if that 5 is right but have a play around. I think you want to count the members until it's 6 max, but make sure if there are 8 people they go 6,5,4,3,2,1,0,0? I haven't tested this so let me know if it doesn't work!

Mackers

Works like a charm! Thx!!!!

Replies
1
Views
179
Replies
1
Views
437
Replies
3
Views
1K
Replies
3
Views
898
Replies
1
Views
381

1,196,369
Messages
6,014,889
Members
441,854
Latest member
Amstaff

### 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.

### Which adblocker are you using?

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

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