# Help with Formula and/or Macro

#### jfharper

##### New Member
In the below sheet, I have a list of participants who compete in a fishing tournament. They each have the option to contribute to a 5, 10, or 20 dollar option, or pot of cash. Based upon how they place determines their payout of the individual options. So 1st place gets 50% of the total from each option he/she contributes to, 2nd place get 30%, and 3 place gets 20%. Now, if an individual does not contribute to an option, then the next highest place gets that next allotment of cash. So you can see below that Name2 did not contribute to the \$10 option, so Name3 got the 30% of the \$10 option, and nothing from the \$5 and \$20 options. Name4 got the 20% of the \$5 option, Name5 got the 20% from the \$10 option, and Name6 got the 20% of the \$20 option. I would like to generate a formula/macro for each of the \$5, \$10, and \$20 option cells in order to calculate the individual payouts of cash based upon contribution and place. Could someone please look at this and lead in me the right direction? Thanks in advance.
JH
Results.xls
ABCDEFGHIJ
1AnglerOptionsFishTotal
2Name\$5\$10\$20WeightPlace\$5\$10\$20\$
3Name15.0010.0020.0018.52113203062.5
4Name25.000.0020.0015.2228 1825.5
5Name30.0010.000.009.853 12 12
6Name45.000.000.009.9945  5
7Name55.0010.000.009.3658 8
8Name65.0010.0020.008.8861212
9Totals25.0040.0060.00
Event 1

### Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Just to set one thing straight, should Name3 be the number 4 ? I mean, his fish weight is 9.85 vs Name4 who weights 9.99.

Yes, I made the numbers fast and suposedly arbeitrary...please disregard this error. Thanks,
JH

Awesome, Yogi, that's it...thanks a bunch, I and my fishing club really appreciate your help.
JH

Replies
1
Views
251
Replies
14
Views
1K
Replies
3
Views
184
Replies
4
Views
181
Replies
2
Views
226

1,207,097
Messages
6,076,556
Members
446,213
Latest member
bettigb

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