+ Reply to Thread
Results 1 to 9 of 9

Help Please - Formula to work out subtraction with accruing Addition total multiple sheets

  1. #1
    Registered User
    Join Date
    05-17-2019
    Location
    Sydney
    MS-Off Ver
    2018
    Posts
    4

    Help Please - Formula to work out subtraction with accruing Addition total multiple sheets

    Afternoon Excel Community (that title descriptive sounded confusing enough :D )

    First top poster and hoping someone can help.

    In this image, for each value in each of the 'Attack' column, the maximum value that manually gets put in is up to 5 however on occasions the value will be less. As per this example.

    Player RD by RD stats.jpg

    What I am trying to work out is, how do I calculate the formula for a running total to be put into a different worksheet, in the ' Total Missed Attacks' column. Keeping in mind though, as each round progresses the total value will always increase by +5

    Total Page.jpg

    As an example, lets say as round progresses and we are in the 3rd round. This means there has now been a 15 possible attacks but using the stats in image 1, the player only did 12 attacks. I'm trying to work out how in image 2 that I can have the total missed attacks displayed in 'Player League Total Stats' worksheet - Column F4.

    The issue is, as another round is completed, there will be an additional 5 value to be added to the accruing 'Total Missed Attacks' column, which also needs to work out the difference that the player completed attacks for that round.

    Does that make sense??

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-17-2019
    Location
    Sydney
    MS-Off Ver
    2018
    Posts
    4

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Thank you for your reply.

    I have attached a dummy workbook and briefly explained within what im trying to achieve

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Try this for the Stars...
    =IF(A4="","",SUMIF(Players!$C$3:$AT$3,"stars",Players!C4:AT4))
    (note, to keep the formula simple to understand, I shortened the 1st sheet name)

  5. #5
    Registered User
    Join Date
    05-17-2019
    Location
    Sydney
    MS-Off Ver
    2018
    Posts
    4

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Thank you for helping.

    The Stars columns were originally fine, I only need a running total for them which was quite an easy formula.

    The only formula I require for this workbook is the accruing 'Attack' stats.

    As the rounds progress, there are 5 attacks per person. The total value of attacks they do for that single round will be put in the 'Attack' column. i.e. 3 (but there is a Max of 5 for that round).

    The stat that is displayed on the 'Players Total League Stats' worksheet, in the 'Total Missed Attacks' column should equal 'Current Total Max attacks minus the value of number in the 'Attack' column', including every round.
    Last edited by AliGW; 06-09-2019 at 02:59 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Let's simplify this. Start with C4:

    =SUMPRODUCT(('Players League RD by RD stats'!$A$4:$A$8='Players League Total Stats'!$A4)*('Players League RD by RD stats'!$C$3:$AT$3="Stars")*('Players League RD by RD stats'!$C$4:$AT$8))

    D4:

    =SUMPRODUCT(('Players League RD by RD stats'!$A$4:$A$8='Players League Total Stats'!$A4)*('Players League RD by RD stats'!$C$3:$AT$3="DMG")*('Players League RD by RD stats'!$C$4:$AT$8))

    E4:

    =SUMPRODUCT(('Players League RD by RD stats'!$A$4:$A$8='Players League Total Stats'!$A4)*('Players League RD by RD stats'!$C$3:$AT$3="Attack")*('Players League RD by RD stats'!$C$4:$AT$8))

    F4:

    =(SUMPRODUCT(('Players League RD by RD stats'!$A$4:$A$8='Players League Total Stats'!$A4)*('Players League RD by RD stats'!$C$3:$AT$3="Attack")*('Players League RD by RD stats'!$C$4:$AT$8<>""))*5)-E4

    G4:

    =SUMPRODUCT(('Players League RD by RD stats'!$A$4:$A$8='Players League Total Stats'!$A4)*('Players League RD by RD stats'!$C$3:$AT$3="Bonus")*('Players League RD by RD stats'!$C$4:$AT$8))

    All to be drag copied down.
    Attached Files Attached Files
    Last edited by AliGW; 06-09-2019 at 03:30 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Registered User
    Join Date
    05-17-2019
    Location
    Sydney
    MS-Off Ver
    2018
    Posts
    4

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    Thanks AliGW, thats exactly what I'm after. You're a legend :D

    I'll resolve this thread
    Last edited by AliGW; 06-09-2019 at 04:51 AM. Reason: Please don't quote unnecessarily!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Help Please - Formula to work out subtraction with accruing Addition total multiple sh

    You're welcome!

+ 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. [SOLVED] Require Basic addition and Subtraction Formula
    By robgallo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2018, 11:02 PM
  2. Addition and subtraction from cell
    By cybershot in forum Excel General
    Replies: 5
    Last Post: 01-01-2016, 07:49 PM
  3. countif with addition or subtraction
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 09-30-2014, 06:55 PM
  4. formula addition and subtraction help for financing
    By ayjay2014 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2014, 05:37 AM
  5. change formula from addition to subtraction visa/versa
    By TI_Ted in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2014, 05:17 PM
  6. Rolling subtraction of multiple cells in row until desired total reached
    By ducexcel2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2013, 10:29 AM
  7. [SOLVED] Error in Addition and Subtraction
    By stat721 in forum Excel General
    Replies: 2
    Last Post: 08-09-2005, 07:05 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