+ Reply to Thread
Results 1 to 3 of 3

Using Cells to Delineate What Other Cells to Add

  1. #1
    Registered User
    Join Date
    05-19-2013
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2011
    Posts
    4

    Using Cells to Delineate What Other Cells to Add

    I am having a problem trying to set up this formula. I have a range of cells, with columns for each period of a game, and rows for each game, with the scores in the range. For a certain player, I want to be able to input in a different row what game they played, and what period they came in and out of the rotation, and have it total up the score.
    Period
    Game
    1 2 3 4 5 6 7 8 9
    1
    0 3 2 4 0 0 0 0 0
    2
    0 1 1 5 5 3 0 0 0
    3
    0 2 4 0 0 0 0 0 0
    4
    0 5 5 5 0 0 0 0 0
    5
    0 3 2 2 4 0 0 0 0
    6
    0 4 4 2 0 0 0 0 0

    Player Game Period IN Period OUT Score
    Adam 1 2 4


    For example, here, with Adam, he played in Game 1, started playing in the 2nd period, and left in the 4th. I would want the score accumulated while he was on the field (in this example it would be 9... Game 1 Period2+Game1Period 3+Game1 Period4).

    I am trying to work a formula that will automatically do that calculation when I input the game and period numbers down in the roster section. Any tips?

    Thank you!!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Cells to Delineate What Other Cells to Add

    maybe using offset like this
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-19-2013
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Using Cells to Delineate What Other Cells to Add

    Thank you, that is exactly what I had been searching for!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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