+ Reply to Thread
Results 1 to 4 of 4

League

  1. #1
    Registered User
    Join Date
    01-21-2007
    Posts
    3

    League

    Hi

    Im currently making a small league table where i have listed all the fixtures for each team, with cells so the the scores can be entered.

    I have a table where I have used If statement to work out points, for example i have, If one number is greater than the other then put in a one in the win cell of the team, if not a zero, once all fixtures are played this adds up fine as for the point i just times this wins cell by 3. this works for the games lost column also by reversing it to less than.

    But my problem is the games drawn column where i have equals to if statement, then put in a one, but even though the scores are blank the table keeps reading that every team has drawn every game and gives the teams 1 point for every drawn game.


    Sorry if this sound confusing, any advice

    P.s. how can i sort a league according to points

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,


    The attached might give you some idea's for your league table

    http://www.xldynamic.com/source/xld.LeagueTable.html

    Return the 1 sounds like you need another if statement to return blank if cell is blank

    e.g

    =if(A1="","",if(A1<>"",your condtion,"")

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-21-2007
    Posts
    3

    Random

    Hi thanks for that that seems to do the trick,

    but I forgot to ask another thing, I want to generate a random fixture list for 6 teams, playing one another once, is there a way that i can do this?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This might help. Uses a formula with a USer defined function from Mcgimpsey Website

    http://www.mcgimpsey.com/excel/udfs/randint.html

    VBA Noob
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1