League Cup Draw By Using VBA

Dec 3, 2009

i want to make a cup draw, but i don't want to use RAND, I want to use VBA.

What i want is to make a English Football League Cup, so all 92 leagues teams are in it, but as follows

First Round 72 teams
Second Round 50 Teams
Third Round 32 Teams
Fourth Round 16 Teams
Quarter-Finals 8 Teams
Semi-Final 4 Teams
Final 2 Teams

for a team list see attached excel spreadsheet

If you are not sure what i mean google search English League Cup or try soccerway

I want a command box or similar for each round, i dont want it to change unless i click on the command button again.

i will be inputing the scores myself.

Sorry i forget one team in the First round "Darlington"

View 14 Replies


ADVERTISEMENT

League Spreadsheet

Dec 3, 2009

We have an archery league that is getting very popular, and very time consuming. We have a spreadsheet now that works, but so much of it isn't annomated that it's not saving a bunch of time for us. It is, however, very accurate, so we keep using it, but I think there is a better way out there to do it, and I bet one you excel pro's know the answer.

Here is how it works:

We have three man teams. Let's say we have 20 teams again this year (we did last year). These teams will have their own unique schedules of other teams that they will play against. We have ten weeks of head to head team matches.

Every week, every shooter's average is computed. So, week one their average is whatever they shot. Week two is the average of week 1 and week 2 combined, and so on. This revolving average keeps shooters from sand bagging.

The team head to head match ups are handicapped. Let's say that team 1 is up again team 2 in week 1:

Team 1 is consisted of bill, bob, and barry. Bill's average at this time is 300, bob's is 290, and barry's is 295.

Team 2 is Larry, Leonard, and Louie. Their averages at this point are 290, 280, 300.

The head to head team match up is consisted of three individual head to head's. The shooters with the best averages, at this point in time, face off, the middle averages face off, then the lowest average shooters on each team also face off. You get 2 points for winning your head to head match. You get 1 point for tieing. Zero points for losing.

The handicaps kick in like this. Bill is the high average shooter on Team 1. He faces Louie since Louie is high man on Team 2. Since their averages are both the same, this match is a head's up, scratch, match with neither shooter getting spotted points.

The middle shooters are Barry with his 295 against Larry with his 290. We use a 80% handicap. So, Larry gets "spotted" 80% of 5 points, or 4 points. The same goes for the matchup of Bob against Leonard. Leonard gets 8 points in his match (80% of the ten points that his average is lower).

Shooters shoot their games, scores are taken, points are spotted points are added in, then winners are declared. Then, the points each shooter wins is added into a team total for that week, then on to the next week's match.

My biggest problem is that the #1, #2, and #3 shooter on each team, each week, changes sometimes. In my previous example, lets say that in week two, lets say louie blows it and shoots a 270. So now his average isn't the highest on his team, so the pecking order of the team changes.

So, my challenge to this board, if you wish to accept it, is how do I set this bad boy up? Lots of issues here. The biggest one is how to get the teams to self rank themselves each week?

I'd love to have a tab where I enter each shooter's score in, and excel takes it from there giving points to winners of adjusted matches.

View 14 Replies View Related

League Table Without Macros

Jun 30, 2006

I'm after a league table spreadsheet that automatically sorts after entering results but I also want a spreadsheet that doesn't use macros (pcs at work prevent the use of macros - I understand why but its a pain still!).

I know this is possible from looking at this excellent freeware world cup 2006 spreadsheet: [url]

Ideally I'd like to adapt this spreadsheet for my needs but having unhid all of the worksheets I'm blown away by just how complicated it is: For each world cup group the worksheet is 9 PAGES LONG of what seems like duplicated tables!

View 14 Replies View Related

Creating A League Table

Mar 4, 2010

I started back in august doing the fixtures of my local rugby league league. I have created a league table using excel but i have been having to enter each teams points in manually adding and subtracting the points differences. I was hoping that you would be able to enlighten me in how I could just enter the results and the league table would automatically update.

I dont know if I can upload the file to show you if you can do this please let me know

View 9 Replies View Related

Handicap System For Golf League

Mar 18, 2007

Just starting to use excel and have a problem I hope someone can solve. Trying to set up handicap system for golf league. Column A is players. Column B shows average of last 5 rounds played and rounded to nearest whole number. column C shows the same without rounding. column D and beyond show scores with column D being the most recent. Have this all this working well with one problem. Each week I insert new column D, enter scores, and everything is recalculated. How do I deal with absent players? Is there a way to enter perhaps "A" for absent and excel will know to count the last 5 cells with numerical values only?

View 14 Replies View Related

League Table Not Updating Properly

Jan 22, 2010

My league table just stopped adding the scores up as of week 22. prior to that they worked fine. I input scores in the "Our Players" sheet, per player per week.... simple. but like i said, as of Week 22, it just inputs that specific weeks scores. See attached file.

View 4 Replies View Related

Soccer League Last 5 Games Standings

Aug 3, 2013

I'm creating a league table that does not need to be sorted.

I already have Overall, Home and Away standings but I also want to add a Last 5 games standing

Here is my spreadsheet:Soccer League Table.xls

The dates in the results tab

View 1 Replies View Related

Golf League Point Counter

Jul 15, 2006

If the number in one cell is larger than the number in another cell then i would need a 2 added to yet another cell.

I the first two cells are equal then I would need to add a 1 to that 3rd cell.

View 3 Replies View Related

Auto Sort A League Table

Nov 15, 2006

I have a football pontoon league that works on goals scored, what I am tring to do is to be able to auto-sort the league on the right of the document when I amend the numbers on the table on the left of the document.

View 9 Replies View Related

Auto Sorting League Tables

Apr 10, 2007

I have collate the results from 3 companies all whom sell a series of products. Each day they submit there sales and productivity results to me and I collate them to a weekly return that I then manually rank each area in a league table to show 1st, 2nd, 3rd....

I'd love to be able to automate this so that the league table page updates and sorts top to bottom automatically from the data entered on the other pages, but don't know how. I think macro's are the answer but I have no idea how to make a macro perform the actions I need.

View 6 Replies View Related

Automatically Adjusting League Table

Sep 12, 2007

This is for a call centre and sales office. there are 3 tabs. Tab 1 represents the values that we update at the end of each week which then gives a running total over an 8 week period and then an average below. there is a seperate table for each staff member. Tab two is for one team of people and tab two is for the other team. Namely LG team and Sales Team. the tab 2 and 3 are to show league tables that both collect data from tab 1, but then create a league table showing who is top dog over the 8 week period. But this also has to self adjust to be in order.

on tab 2 and 3, the tables on the left will be hidden once complete, but are there to work out the league. the table on the right is then there to put and show the league in the right order. I HOPE THAT MAKES SENSE, COS EVEN I'M LOST NOW. I've followed previous advice on this and inputted what I think are the right formulas, but for some reason it's coming up with the wrong answers and several names are being repeated which are wrong. For example even when ben perhaps is number 2, it will show rahim as number 2 and number 3. why is this?

also, how do I get by the problem of on the odd occassion when perhaps ben and rahim have the same stats and are joint second, but it will only show ben as 2 and ben as 2 again, leaving rahim out of it. WOW. I'm glad I've got that out of my system. I was doing the washing up yesterday donig Excel formulas in my head. But the washing up got done at least.

View 3 Replies View Related

Displaying Last X Results For Soccer League Table

Jul 1, 2014

For a soccer league table I'm building, I'm trying to add a few columns that display each team's form in the last few matches. So, it will state 'W', 'D' or 'L' for a certain number of recent matches. Like this for each team in the league table: WWDLW.

In the attachment example, I've pretty much got the concept working, having used the invaluable INDEX/MATCH/LARGE functions and a serial date column. The problem is, at the moment the DDW you see at the bottom is taking the whole table into consideration. I'm trying to get it so only Arsenal's recent results are taken into account. I feel like this shouldn't be too difficult, but after numerous attempts of using different functions I cannot get it to work.

Book1.xlsx

View 12 Replies View Related

Pool League And Use To Track Player Handicaps

Oct 18, 2006

I run a small town pool league and use excell to track player handicaps, ect. we use a simple system for handicapping. Players can be from 2- to 7+ (2- 2 2+ 3- 3 3+ 4- 4 4+) and so on. if a player is a 2+ and wins they go to a 3- and so on. I want to be able to just type a W or an L and have it look up the players previous handicap and return a new handicap in the next field. I've allready figured out how to count the W's and L's and return the total for a teams weekly wins on another page, and give stats on a players wins and losses. I then print each sheet out weekly. Teams have 8 players but only play 5 each week so some players might not play for 2,3 or more weeks. I also use access to keep track of all the people that have played in the league. some players play a few sessions then quit for a few. this way i can keep track of their handicaps when not playing and havew a list of all the people that have played in the league. Can i get excel to transfer a players handicap to access each time it changes?

View 9 Replies View Related

Calculating And Ranking Teams In League Tables

Aug 17, 2008

i am trying to make a spreadsheet up which will calculate and sort out teams in a league table for my local football team. basically, i have around 6 teams in the league and they need to be sorted via: points, then goal difference, then goals scored and then by the match between the two teams if still equal. I have managed to work out how to get excel to calculate all of the numbers of wins and losses and goals scored, etc but cannot find how to rank the teams in order regarding how i just explained.

View 9 Replies View Related

Fill League Table Based On Value Found Or Not

Apr 5, 2008

I am trying to update a league table from a different sheet. The table is not fixed on how many people with be in it as this can grow. This what I have in mind to do what I need but can work out how to implement it.

I need to loop though column "A" in sheet "U8" range A2:A?

The value in column "A" is unique so from "A2" I then take the value in "K2" for this unique id.

I now need to search column "A" in sheet "U8 League Table" for the unique ID place the value of "U8 - K2" into column "D" (Round2) row will be different in most cases to round1.

If the unique ID is not found in "U8 League Table" then add it.

The U8 sheet is populated a fresh per event (fortnightly) and the data fed (riders score will always be in column K, different row) into the League Table. However. as the rounds mount the data will need to go into next column along in the Table i.e Rd1 in C, Rd2 in D, Rd3 in E etc.

View 4 Replies View Related

Build Up Excel File For Portuguese Soccer League?

Aug 18, 2014

I am trying to build up an excel file for the Portuguese Soccer League.

It has 18 teams.

Problem 1:

I already figured out a way for the untie criteria to be used during the regular season, that is, for the first 33 days (rounds) - criteria d) to f).

d) Biggest difference between Goals For and Goals Against on all the games they have played;

e) Most wins on all the games they have played;

f) Most Goals For on all the games they have played.

For the last round (34th round), the criteria are more complex. They include the first three criteria that concern the games played between the tied teams.

a) The most points won by the tied teams on the games played between each other;

b) The biggest difference between Goals For and Goals Against between the clubs that are tied on the games they have played between each other;

c) The most goals scored on the away games on the games the tied teams played between each other;

To summarize:

- For the day-to-day standings the criteria that applies is d) to f).

- For the final standingsthe criteria that applies is a) to f).

Problem 2:

I created a sheet named "Evolution" from which I want to extract streaks information: for example current streak, longest win streak, longest draw streak, longest loss streak, longest non-winning streak, longest non-losing streak if possible for home, away and global games.

View 6 Replies View Related

Worksheet Formula - Spreadsheet For Fantasy Baseball League

Feb 3, 2007

I am making a spreadsheet for my fantasy baseball league and I have it set up how I want it, minus the correct formula(s) to make it work.

Basically, I have 15 different tabs in one .xlsx file. The first 14 are each team and their players. The 15th is a huge ranking list of all the players in the league basically.

What I want to happen is, as I enter a name in any of the first 14 tabs, somehow on the 15th the corresponding name with be crossed out, colored, etc.

View 9 Replies View Related

Random Draw

Dec 1, 2008

I was looking for some code to randomly generate a number for a prize draw I am doing. I found a great piece on this site, which I have slightly changed to give me what I have below.

It works great except for one thing I cannot work out, I have the code below working on cell "C1", I would like it to work in cell "C5", but I can't seem to work this out.

Sub SlotsNum()
Dim w As Long, x As String, y As Long
Randomize
x = Format(Int((Range("B2") - Range("B1") + 1) * Rnd + Range("B1")), "0000")
For y = 1 To 1
For w = 1 To 250
Range("C" & y) = Int(8000 * Rnd)
Next w
Range("C" & y) = CInt(Mid(x, y, 4))
Next y
End Sub

Also, whilst here. i will have one other problem, with it being a prize draw I do not want to draw the same number twice. At the moment I have a small macro that copies the winning name that appears on the main screen (via a vlookup) onto a winners spreadsheet. I am thinking of then creating another macro that replaces the winning name on the master list with an "Already Won" entry, so we can just select again.

View 9 Replies View Related

Draw A Circle

Apr 4, 2009

Ive been trying to draw a circle in excel, although it only draws ovals - Is there a way to draw a circle in excel?

View 9 Replies View Related

Combinations - Win Or Draw

Nov 28, 2009

I'm creating a spreadsheet regarding football teams and want to lis thte combinations of results for each team.

Specifically, if the team will win or draw.

So, I have 6 teams, each team can either win or draw.

I want to display the combinations of team 1 winning AND team 2 winning AND team 3 winning etc.

View 9 Replies View Related

Draw Line On Userform

Jan 22, 2010

Is it possible to add horizontal lines to a user form, like as shown in the attached image. I know about frames, but unsure how to get just one horizontal line.

View 3 Replies View Related

Set Cursor To Draw Connector In VBA

Dec 18, 2012

i have faced a problem i want to draw straight connector using code imagine when you select straight connector to draw line mouse cursor changes when you move it to a node i want to do this with excel vba code without going to shapes and selecting connector.

View 5 Replies View Related

Draw A Border Using Line?

Aug 14, 2013

I'm trying to use VBA to draw a border using the drawing toolbar and using the line. i need it to draw a border around a select area i hightlight.

i have attached a example below, but not sure if it will appear.

View 1 Replies View Related

Draw And Delete 1 Line

Mar 7, 2014

I have this Command button that switches on and draws a line. If you press it again then I need to delete that line.

If I push the button multiple times Excel keeps changing the name of the line. I have multiple lines on the same worksheet and text boxes but only this 1 line needs to be delete. I would think that theres a way to assign a permanent name to this line and delete and recreate it but...

ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 319.5, 77.25, 319.5, _
245.25).Select
With Selection.ShapeRange.Line
.Visible = msoTrue
.Weight = 1.25

[Code]....

View 3 Replies View Related

How To Draw A Line In Userform

Dec 30, 2009

I have a 5-column listbox in a userform. I do not know how to make the column borders visible. If somebody can tell me, that would be great.

If not, then the next alternative would be to manually draw a line. I tried to so one, by creating a Label with a width of 1, and backcolor ot black. This works but not in front of a list box. For some reasons it cannot be brought to front/forward (order) of a listbox, I already right-clicked several times and sent tthe order to front.

Is it possible to bring it in front of a listbox?

View 9 Replies View Related

Draw Every Worker And Display Compensation They Got?

Nov 12, 2013

I have attached a very simple example of what I am trying to achieve.So we have 2 sheets. a sheet called data and a sheet called results.

the data sheet, includes ID's of employees and what they are measured on - Hours and Accounts Finished.For example, worker 123 put in 100 hours from the 200 expected and finished 100 accounts from the 200 expected. The main sheet called Results looks up in a list every ID and displays in a table the compensation the worker got. Each time you select from the drop list a different ID number it shows the result and the amount of money they got.

I want to be able to draw every worker and display the compensation they got('Results', H11) in the Pay amount column('Data',H3:H11).

View 6 Replies View Related

Macro To Draw The Cell Border

Sep 30, 2009

Since I did not know how to do this I used the record macro cheating option.

Excel spit out this chunck of

View 6 Replies View Related

Rankings Draw Sheet For A Tournament

Nov 22, 2006

I have a worksheet set up as a draw sheet for a tournament. I have a set of rankings showing all points collated from last tournament. What i want to do is set up a formula/macro so that a cell containing a player eg. the winner will be found on the ranking list and the points won will be added to the next cell on the ranking list.

View 14 Replies View Related

Excel - How To Draw Olympic Rings

Dec 17, 2013

How to draw Olympics rings in Excel?(not by using macros)?

View 7 Replies View Related

Macro To Draw Colored Circles

Sep 9, 2008

I've recently come across this wonderful site and have found it to be a pool for great information. I looking for some assistance with finding a macro that will draw circles/dots on a worksheet when the left mouse button is clicked at the mouse cursor location. There may be something out there already??? Here's exactly what I need; I want a macro that will draw 7 different coloured circles (blue, pink, cyan, lime green, red, yellow, and orange) on a worksheet. The macro would be activated from a button (7 different buttons- one for each colour) on the worksheet and when the left mouse button is clicked the coloured circle is drawn at the mouse cursor location.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved