+ Reply to Thread
Results 1 to 4 of 4

VBA To Loop and Calculate scores

  1. #1
    Registered User
    Join Date
    08-03-2015
    Location
    Newport
    MS-Off Ver
    2007
    Posts
    6

    VBA To Loop and Calculate scores

    I've been spending a silly amount of time trying to get this vba to work (probably more than I could have done it manually over a whole season) and now its bugging me to get it working.

    I have each match played on the left, Result, scores
    i.e
    United v swansea HW 2 1
    leicster v everton D 2 2
    arsenal v chelsea AW 1 2
    etc etc

    then next to that each player guesses the match result, score and the total points is calculated below.

    Basically its 3 points for getting the result bang on, 2 points for guessing a draw (incorrect score though) and 1 point for guessing an Away win or home win without getting the correct score.

    If anyone could point me in the right direction or take a look at the spreadsheet i'd be very grateful.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA To Loop and Calculate scores

    Please Login or Register  to view this content.
    As your sheet stands you would then calculate using
    Please Login or Register  to view this content.
    however unless the goals are being used independantly elsewhere then personally, Id have single columns for the scores showing them as 2-1 etc, your formula then becomes:
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    08-03-2015
    Location
    Newport
    MS-Off Ver
    2007
    Posts
    6

    Re: VBA To Loop and Calculate scores

    Hi Thanks for the post.
    I've created this method now that works great for the one column.
    The main problem I have is how to loop through all the results?

    So i'd need to loop through the actual results, then loop through the guesses for the players one player at a time?

    Can you advise with this?
    Last edited by lavster; 08-05-2015 at 03:01 AM.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VBA To Loop and Calculate scores

    Im not sure what you mean? This would be a function that you'd use in a cell in order to pull a single result in

    ie place the following in E14 and drag down to E24

    Please Login or Register  to view this content.
    then copy E14 and paste in H14, K14, N14 etc

    et voila all the scores calculated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 06-02-2014, 08:05 PM
  2. [SOLVED] Calculate top 3 scores with conditions
    By Deventus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:17 AM
  3. calculate scores based on 3 x conditions
    By reddwarf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-21-2012, 10:32 AM
  4. Replies: 1
    Last Post: 09-20-2010, 07:06 PM
  5. Calculate total scores from table
    By Mawhood in forum Excel General
    Replies: 10
    Last Post: 01-28-2010, 02:12 PM
  6. How do I average 4 of the last 8 golf scores to calculate a handic
    By Handicapper1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2006, 02:45 PM
  7. [SOLVED] Using functions to calculate multiple scores according to their level of difficulty
    By cheski in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2005, 05:06 PM

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