GOLF EXCEL COUNTING CARRIED SKINS THAT COME BEFORE EACH NAME.

kameron1967

New Member
Joined
Sep 6, 2009
Messages
15
Hi. I wanted to create a spreadsheet that automatically count the number of TIE above each name. I explained a little bit on the spreadsheet, so if there is a tie on a hole, it is carried to the next hole until someone wins that hole, which include all the TIE that were not won. SAL/BAILEY only wins 6 carried skins for holes 3/4/5/6/7/8, because ENRICO won the TIE on hole 1. Thank you in advance.

TOTAL PLAYERS
60​
$ PER PLAYER
$18​
TOTAL MONEY PRIZE
$1,080​
TOTAL SKINS - NO CARRY
8​
HOLECARRY - Y/NHOLE WINNER
#1YESTIEThis skin is carried to hole #2 and ENRICO won it.
#2ENRICO
#3YESTIE
#4YESTIE
#5YESTIE
#6YESTIE
#7YESTIE
#8YESTIE
#9SAL/BAILEYThese skins are carried to hole #9 and SA/BAILEY won them.
#10ZACH/JESSE
#11YESTIE
#12BLAZER (BOUN)This skin is carried to hole #12 and BLAZER (BOUN) won it.
#13Buun-KGA
#14ELIJAH
#15ALLAN/DANNY
#16YESTIEThis skin is carried to hole #16 and Pounky-KGA won it.
#17Pounky-KGA
#18YESTIEThis skin is tied on the last hole, so no one gets this skin.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This needs xmatch to work - I don't know what version you are running:

MrExcelPlayground12.xlsx
ABCDE
2HOLECARRY - Y/NHOLE WINNERSkins
3#1YESTIE This skin is carried to hole #2 and ENRICO won it.
4#2ENRICO2
5#3YESTIE 
6#4YESTIE 
7#5YESTIE 
8#6YESTIE 
9#7YESTIE 
10#8YESTIE 
11#9SAL/BAILEY7These skins are carried to hole #9 and SA/BAILEY won them.
12#10ZACH/JESSE1
13#11YESTIE 
14#12BLAZER (BOUN)2This skin is carried to hole #12 and BLAZER (BOUN) won it.
15#13Buun-KGA1
16#14ELIJAH1
17#15ALLAN/DANNY1
18#16YESTIE This skin is carried to hole #16 and Pounky-KGA won it.
19#17Pounky-KGA2
20#18YESTIE This skin is tied on the last hole, so no one gets this skin.
Sheet20
Cell Formulas
RangeFormula
D3D3=IF(C3="TIE","",1)
D4:D20D4=IF(C4="TIE","",1+ROWS(C$3:C3)-IFNA(XMATCH(FALSE,C$3:C3="TIE",0,-1),0))
 
Upvote 0
I convert everything above the row in question into a series of TRUE and FALSEs (the C$3:C#="TIE" creates an array of TRUE and FALSE). I search that array using XMATCH (which allows for a bottom up search - unlike MATCH), to find the last FALSE (instead of the first). So, the ninth hole has 8 records above it. I subtract the row of the last FALSE (2nd row), and add one (for the ninth hole), to get 7.

So XMATCH looks for FALSE, in the newly created array (C$3:C#="TIE") and finds the last one (used the -1 parameter at the end of XMATCH), and subtracted that from the total rows of C$3:C#.
 
Upvote 0
What if ENRICO also won two more skins further down (hole #17), what is the formula for adding all the skins that he won for all the 18 holes..? Thanks in advance.
 
Last edited:
Upvote 0
You'd do this:
MrExcelPlayground12.xlsx
ABCD
2HOLECARRY - Y/NHOLE WINNERSkins
3#1YESTIE 
4#2ENRICO2
5#3YESTIE 
6#4YESTIE 
7#5YESTIE 
8#6YESTIE 
9#7YESTIE 
10#8YESTIE 
11#9SAL/BAILEY7
12#10ZACH/JESSE1
13#11YESTIE 
14#12BLAZER (BOUN)2
15#13Buun-KGA1
16#14ELIJAH1
17#15ALLAN/DANNY1
18#16YESTIE 
19#17ENRICO2
20#18YESTIE 
21
22
23Totals
24ENRICO4
25SAL/BAILEY7
26ZACH/JESSE1
27BLAZER (BOUN)2
28Buun-KGA1
29ELIJAH1
30ALLAN/DANNY1
Sheet20
Cell Formulas
RangeFormula
D3D3=IF(C3="TIE","",1)
D4:D20D4=IF(C4="TIE","",1+ROWS(C$3:C3)-IFNA(XMATCH(FALSE,C$3:C3="TIE",0,-1),0))
C24:C30C24=FILTER(UNIQUE(C3:C20),UNIQUE(C3:C20)<>"TIE")
D24:D30D24=SUMIFS(D3:D20,C3:C20,C24#)
Dynamic array formulas.


or this:

MrExcelPlayground12.xlsx
ABCDE
2HOLECARRY - Y/NHOLE WINNERSkinsCumulative Skins
3#1YESTIE  
4#2ENRICO22
5#3YESTIE  
6#4YESTIE  
7#5YESTIE  
8#6YESTIE  
9#7YESTIE  
10#8YESTIE  
11#9SAL/BAILEY77
12#10ZACH/JESSE11
13#11YESTIE  
14#12BLAZER (BOUN)22
15#13SAL/BAILEY18
16#14ELIJAH11
17#15ALLAN/DANNY11
18#16YESTIE  
19#17ENRICO24
20#18YESTIE  
Sheet20
Cell Formulas
RangeFormula
D3D3=IF(C3="TIE","",1)
E3E3=D3
D4:D20D4=IF(C4="TIE","",1+ROWS(C$3:C3)-IFNA(XMATCH(FALSE,C$3:C3="TIE",0,-1),0))
E4:E20E4=IF(D4<>"",D4+SUMIFS(D$3:D3,C$3:C3,C4),"")
 
Upvote 0
I was able to use the vlookup function to do the work, but I'll use yours instead though. Love the first option! Thanks again, James! :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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