Golf team to individual matches

Hobbesofmi

New Member
Joined
Aug 21, 2014
Messages
8
Golf teams of 2 for 20 teams and each week the low handicap from each team will match play each other and higher will match play.

I have the roster with the handicaps on one tab and the matches on another. The team number is a merged two rows on the roster.

I've tried match, vlookup, sumif, etc. so I'm still back at square one.

Match AbsentsSeasonTeam Standings
FLIGHT "A"GrossHcp
NetIndividualTeamWeeks PlayedTotal Strokes AvgNew HCPpoints this weektotal pointsPLACE
1JERRY4563924834843.506122155
JIM A5 2834242.755
2MIKE4253735729241.715192183
LARRY 447372835344.137
3JIM 44103413943147.8910312251
JIM 392372831038.752
4RORY 47641001043743.706222155
DENNY 53104301049149.1010
5GLEN 4283435731945.5783218210
JIM 5012382840350.3812
6WAYNE 4664036730743.866282202
JOE 4611353734449.1411
7TOM 451233001050050.0011292164
RICH 4774001044744.707
8MIKE 51104113943548.3310202137
PAUL A9 2837947.389
9TIM 47143323841852.2513252009
DAN 467391940645.117
10**** 4593611941846.448212088
ROY 56154101054954.9015
FLIGHT "B"
11TOM 43113211944249.1110282092
RICK 49123701051351.3012
12KEVIN 481038001047947.9010191905
KEVIN Jr.53134001051851.8013
13CHUCK 48939021047447.409152053
JACK 5617392845356.6317
14SCOTT 491138011049449.4011202101
RICHARD 5712451946551.6713
15MIKE 54124213946551.6713111817
RAY 5917422845857.2517
16LES 56154112949454.8915121769
STEVE A18 1952258.0018
17BILL A11 411629549.1711013310
GARIE A19 7318561.6719
18BOB 59154434738855.4316181788
WHIT 6219431953859.7819
19JIM 55134224842553.131491934
GARY 5516392845056.2516
20JOHN 51173401950456.0016211896
NAVID 5515401632654.3315

<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:7716;width:158pt" width="211"> <col style="width:48pt" span="3" width="64"> <col style="mso-width-source:userset;mso-width-alt:3437;width:71pt" width="94"> <col style="width:48pt" span="8" width="64"> </colgroup><tbody>
</tbody>



MATCH NO. 1 Team8Team11 5:00 FRONTNINE
BLUE5063803583053923612321745233231
WHITE4933653423003743462201695033112 INDIVIDUALTEAM # 8
RED4733452962963443202071623972840 POINTSPOINTS
ABS. POINTS012122111 21329
INDV. HOLE H'CAP000000000
PAUL 47.380 74664574447839
TOM 49.110 54867674552943
INDV. HOLE H'CAP000000001 07
POINTS210100111
AverageTot. Abs.HOLE123456789OUTH'CAP.NETINDIVIDUALTeam # 11
HANDICAP697543281POINTSPOINTS
ABS. POINTS022221122 21611
INDV. HOLE H'CAP000000000
MIKE 48.330 84645474648939
RICK51.300 667564758541044
INDV. HOLE H'CAP000000001 04
POINTS200001100
PAR53544443436

<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:6363;width:131pt" width="174"> <col style="width:48pt" span="18" width="64"> </colgroup><tbody>
</tbody>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Hobbesofmi - Welcome to the forum. As nobody has responded I am hoping to get things started. You might try unmerging all merged cells. Merged cells can often confuse functions and any VBA macros you may try. Hope this helps get things started.
 
Upvote 0
I can unmerge the cell but then that sheet will not look good in my opinion.

I was playing with another tab that I do all the scores and skins on that list all the players and their averages. I've put the team number in front of their name 1a 1b but the letter has messed the formula.

Here is what that tab looks like for one week:
WEEK NO 15: Front 9# Players in Skins =0Gross Skin Pot =0No. of Skins =0Payout per Skin:###
SINGLE LOW SCORE>>000000000SKINS>>000000000
Hole>>123456789Hole>>123456789
Par>>535444434Par>>535444434
HDCP>>>697543281HDCP>>>697543281
PaidPLAYERSAverageH.C.GROSS SCOREOUTSKIN SCOREOUT
JIM38.42200
MIKE41.00400
JERRY42.75500
JIM43.55600
RORY43.75600
LARRY44.58700
WAYNE44.67700
RICH44.71700
DAN44.73700
GLEN46.00800
****46.23800
PAUL47.50900
KEVIN47.57900
CHUCK47.86900
JIM48.081000
JOE48.551000
MIKE48.581000
DENNY48.931000
BILL49.251100
TOM49.691100
# Players in Skins =0Gross Skin Pot =0No. of Skins =0Payout per Skin:###
SINGLE LOW SCORE>>000000000SKINS>>000000000
Hole>>123456789Hole>>123456789
Par>>535444434Par>>535444434
HDCP>>>697543281HDCP>>>697543281
PaidPLAYERSAverageH.C.GROSS SCOREOUTSKIN SCOREOUT
TOM49.211100
SCOTT49.571100
JIM49.671100
MIKE50.151100
RICK50.931200
TIM51.081200
KEVIN Jr.51.461200
RICHARD52.331300
JIM53.001400
NAVID53.331400
ROY53.571400
LES54.001400
JOHN54.081400
JACK54.671500
GARY55.271500
BOB55.561600
RAY56.171600
STEVE57.001700
WHIT60.081900
GARIE61.501900

<tbody>
</tbody>
 
Upvote 0
Ok...with a Vlookup I can get the low Handicap guy in the right spot. =VLOOKUP(I1,Sheet3!B9:D56,2,FALSE)

So now I have to figure out how to get the second guy in the second spot. I tried index/match but it will only return numbers and not text. So does someone know a trick to return text?
 
Upvote 0
A combination of the two functions Index and Match will return Text Values.

See Below:

Excel 2012
AB
1TextExampleLocation ID
2Text 11234
3Text 2526
4Text 3324
Text


Here are the formulas:


Excel 2012
AB
1Index Match FormulasLocation ID
2Text 11234
3Text 11234
4Text 2526
5Text 2526
6Text 3324
7Text 3324
FormulaSheet
Cell Formulas
RangeFormula
A2=INDEX(Text!A:B, MATCH(FormulaSheet!B2,Text!B:B,0), 1)
A3=INDEX(Text!A:B, MATCH(FormulaSheet!B3,Text!B:B,0), 1)
A4=INDEX(Text!A:B, MATCH(FormulaSheet!B4,Text!B:B,0), 1)
A5=INDEX(Text!A:B, MATCH(FormulaSheet!B5,Text!B:B,0), 1)
A6=INDEX(Text!A:B, MATCH(FormulaSheet!B6,Text!B:B,0), 1)
A7=INDEX(Text!A:B, MATCH(FormulaSheet!B7,Text!B:B,0), 1)


It may be easier to help if you condense your example. That's a lot of data to look at.
 
Upvote 0
I was looking to upload the file but don't see a way to do it so yes, it's a lot of data and I'm new so I know I'm not formatting it right on here, so sorry about that. I've tried match/index so I'll try it your way and see if it works.
 
Upvote 0
Hobbesofmi,

No worries. We are all here to help. Let me know how the INDEX /MATCH formula goes. If it doesn't work then post back. We will get your issue sorted out :)

1. I'm not saying that this always happens, but sometimes people who would potentially help resolve your issue may skip over the thread because the overwhelming amount of data. A lot of times you can get the issue your experiencing across with a small sample data set.

2. If you want to post your workbook you will have to upload it to an external site like DropBox or SkyDrive and then post a link.
 
Upvote 0
Hobbesofmi,

Insert this User Defined Function (UDF) code in a standard module:
Code:
[COLOR=#0000ff]Function[/COLOR] Nth_Occurrence(range_look A[COLOR=#0000ff]s[/COLOR] Range, find_it[COLOR=#0000ff] As String[/COLOR], occurrence [COLOR=#0000ff]As Long[/COLOR], offset_row [COLOR=#0000ff]As Long[/COLOR], offset_col [COLOR=#0000ff]As Long[/COLOR])


[COLOR=#0000ff]Dim[/COLOR] lCount [COLOR=#0000ff]As Long[/COLOR]
[COLOR=#0000ff]Dim [/COLOR]rFound [COLOR=#0000ff]As [/COLOR]Range

   [COLOR=#0000ff] Set[/COLOR] rFound = range_look.Cells(1, 1)

      [COLOR=#0000ff]  For[/COLOR] lCount = 1 [COLOR=#0000ff]To[/COLOR] occurrence

          [COLOR=#0000ff]  Set[/COLOR] rFound = range_look.Find(find_it, rFound, xlValues, xlWhole)

[COLOR=#0000ff]        Next[/COLOR] lCount

    Nth_Occurrence = rFound.Offset(offset_row, offset_col)

[COLOR=#0000ff]End Function[/COLOR]
This function is provided on the OzGrid Website

In order to accomplish this:
1. Hit Alt + F11
2.On the Menu Go To Insert > Module
3. In the Project Explorer you will now see an icon named Module 1. Double Click It.
4. Paste the above code on the white screen

Once this is accomplished use these formulas on your sheet assuming the data to pull from looks like this:
DATA TO PULL FROM:

Excel 2012
ABCD
7PaidTeamPLAYERSAverage
83JIM38.42
92MIKE41.00
101JERRY42.75
111JIM43.55
124RORY43.75
132LARRY44.58
146WAYNE44.67
157RICH44.71
169DAN44.73
175GLEN46.00
1810****46.23
198PAUL 47.50
2012KEVIN47.57
2113CHUCK47.86
223JIM VAN48.08
236JOE48.55
248MIKE 48.58
254DENNY48.93
2617BILL49.25
2711TOM 49.69
2811RICK???
Sheet3

FORMULAS LOOK LIKE THIS:

Excel 2012
ABCDEFGHI
1MATCH NO.1Team8Team11
2BLUE506380358305
3WHITE493365342300
4RED473345296296
5ABS.POINTS0121
6INDV. HOLE H'CAP0000
7PAUL47.3807466
8TOM49.1105486
9INDV. HOLE H'CAP0000
10POINTS2101
11AverageTot. Abs.HOLE1234
12HANDICAP6975
13ABS.POINTS0222
14INDV. HOLE H'CAP0000
15MIKE48.3308464
16RICK51.3006675
17INDV. HOLE H'CAP0000
18POINTS2000
19PAR5354
Sheet2
Cell Formulas
RangeFormula
B7=Nth_Occurrence(Sheet3!B8:B28,Sheet2!G1,1,0,1)
B8=Nth_Occurrence(Sheet3!B8:B28,Sheet2!I1,1,0,1)
B15=Nth_Occurrence(Sheet3!B8:B28,Sheet2!G1,2,0,1)
B16=Nth_Occurrence(Sheet3!B8:B28,Sheet2!I1,2,0,1)


This is what you wanted correct??
 
Last edited:
Upvote 0
If you can identify a set pattern then you can just programmatically insert the formulas. For example the two formulas above are 8 cells apart. Is this how your data is set up for an entire sheet? Or do you have 200 sheets containing these 4 formulas? Either way it is possible to programmatically insert formulas. If you can provide a pattern I can help you accomplish your goal.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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