Results 1 to 2 of 2

Problem incrementing or decrementing a cells value based on a filters value

Threaded View

Spuggy54 Problem incrementing or... 10-11-2023, 05:21 AM
AliGW Re: Problem incrementing or... 10-11-2023, 05:26 AM
  1. #1
    Registered User
    Join Date
    08-31-2023
    Location
    Tamworth, England
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2307 Build 16.0.16626.20170) 64-bit
    Posts
    52

    Problem incrementing or decrementing a cells value based on a filters value

    Hi,

    I've created a Golf Scores workbook, which is attached, showing a teams score on particular dates.
    I've collated the results into a monthly summary worksheet, overall league position and also an adjustment of each player handicap based on the results.
    The problem I've got relates to the adjustment of the player's handicaps.

    What I would like to be able to do is as follows.
    If a team wins a match, each player's handicap in that winning team is reduced by one shot for the following match.
    If the same team wins again in the following match, then each player's handicap in that team is again reduced by a further shot.
    If that team then doesn't win the following match, then each player's handicap in that team is increased by one shot.
    This continues for each match, decreasing or increasing the each player's handicap depending on whether the team win a match or not.
    The caveat for this process is that each player's handicap must not be increased above their starting handicap.

    I have posted a similar problem before regarding managing the players handicaps based on each games result which worked to a certain degree (probably because I didn't explain the problem sufficiently well!) but after further testing I found that if a team won on two consecutive weeks then on the second win, the player's handicaps were increased and not decreased further.
    This problem can be seen in the attached workbook on the 'Handicaps' worksheet were 'Team 2' have won on 13/11 and 4/12. Their handicaps should therefore be reduced on the 4/12 and the 8/1 and increased by one on the 5/2 and again on 4/3, as they didn't win, when it will be then the team player's starting handicap.

    I have tried to resolve the problem myself but unsuccessfully so looking for some guidance. I hope all this makes sense but obviously get back if it doesn't.

    TIA,

    Chris
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 16
    Last Post: 12-29-2018, 07:34 PM
  2. VBA to change filters based on cells
    By moskendo in forum Excel General
    Replies: 2
    Last Post: 01-30-2018, 02:45 AM
  3. Macro Code problem when Copying Selected (variable) cells with filters
    By sx200n in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2015, 06:55 AM
  4. Changing the Pivot Table Filters based on Multiple Cells
    By dbnhc8 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-28-2012, 02:37 PM
  5. Row Incrementing Problem
    By Spasm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2011, 10:55 PM
  6. Incrementing Cells based on a value
    By That1Dude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2010, 03:23 AM
  7. incrementing a series of cells based on a value in another cell
    By mikeod in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2005, 04:45 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