COUNTIFS Formula based on changing amounts

James8761

Board Regular
Joined
Apr 24, 2012
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hi,
I am trying to add another formula to my spreadsheet. This is concerned with where a runner finishes. We give points to runners who win races and who are 'placed' in a race. If they win a race that just goes in the win column and not in the place column.

If there are 10 or less runners in a race we only give points to the winner, there are no places.
If there are up to 20 runners in a race we give points to the winner, and second place gets placed.
If there are up to 30 runners in a race we give points to the winner, second place and third place gets placed.
If there are more than 30 runners in a race we give points to the winner, second place, third place and fourth gets placed.

I've put together the outcome I would like in the table below. Ideally I want to get rid of Column D and just have a formula in Cell L2, where each time I change the name in Cell J1, it would calculate the amount of times a runner placed.

Thank you for any help.


Positions.xlsx
ABCDEFGHIJKL
1NamePositionParticipantsPlacedParticipantsPlacedNameJenkinsWonPlaced
2Jenkins24N10136
3Jenkins422N202
4Jenkins19N303
5Jenkins216Y404
6Jenkins335Y
7Jenkins28N
8Jenkins112N
9Jenkins17N
10Jenkins1140N
11Jenkins336Y
12Jenkins432Y
13Jenkins221Y
14Jenkins29N
15Jenkins327Y
16Davis34N
17Davis722N
18Davis29N
19Davis316N
20Davis235Y
21Davis18N
22Davis512N
23Davis37N
24Davis440Y
25Davis236Y
26Davis832N
27Davis421N
28Davis19N
29Davis227Y
Sheet1
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,215,106
Messages
6,123,124
Members
449,097
Latest member
mlckr

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