+ Reply to Thread
Results 1 to 9 of 9

Is it possible to automatically reset the final score to zero if a condition is met??

Hybrid View

  1. #1
    Registered User
    Join Date
    08-20-2019
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    14

    Is it possible to automatically reset the final score to zero if a condition is met??

    Hello everyone,

    Is it possible if I want to automatically reset the final score (K26 is the sum from the numbers above) to 0 if there's a fatality case (J17=1)? I'm thinking about using IFERROR but I don't think that will work. Thank you in advance
    K26.png
    Attached Files Attached Files
    Last edited by Sorachi; 01-12-2022 at 02:25 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    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.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-20-2019
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    14

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    Thank you for your input. I've attached a sample file. Any help or thought will be much appreciated

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,728

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    Try

    =IF(SUM(J4:J12),0,SUM(K4:K12))

    However, as pointed out by Ford in post #3, this remain zero as long as there is a "1" in column J
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    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
    53,048

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    Maybe something like thos?

    =IF(cell-showing-fatal>0,0,sum(range))

    However, that will remain 0 for as long as there is a Fatal value
    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

  6. #6
    Registered User
    Join Date
    08-20-2019
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    14

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    This formula works. Thank you very much. I wonder if you also can help if I want to reset other number (K18 to K24) to 0 if there's a fatality (J17=1)?
    Thank you in advance

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,728

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    K18:K24 are not shown in your file but iif you mean resetting K4:K12 you will need VBA.

  8. #8
    Registered User
    Join Date
    08-20-2019
    Location
    Indonesia
    MS-Off Ver
    2016
    Posts
    14

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    Would you please elaborate more about K18:K24 are not shown in my file? I'm sure the hidden option is off.
    I want K18:K24 to automatically scored 0 if J17=1 (or if there's a fatality case). I tried to use IFS formula but I'm not sure if it's right.
    Last edited by AliGW; 01-11-2022 at 05:41 AM. Reason: PLEASE don't quote unnecessarily!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,728

    Re: Is it possible to automatically reset the final score to zero if a condition is met??

    There is no data in K18:K24: your data starts in row 1 not row 14 as your picture!

    possible solution

    =IF(SUM($J$4:J14),0,IF(J4=G4,H4,(-100*J4)))
    Last edited by JohnTopley; 01-11-2022 at 06:37 AM.

+ 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. Scoring spreadsheet that needs to reset to zero if score goes negative
    By RickstaNZ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2019, 11:20 PM
  2. Formula to increase number based on WINS/LOSSES or FINAL SCORE
    By tivory in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2016, 07:31 PM
  3. IF Condition statement for Final Status
    By Rushendra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2016, 04:50 AM
  4. Replies: 1
    Last Post: 08-20-2014, 05:45 PM
  5. Replies: 4
    Last Post: 05-10-2013, 02:19 AM
  6. Replies: 9
    Last Post: 05-29-2012, 03:15 AM
  7. Combination of Assessment for a final score
    By Vinod Pandey in forum Excel General
    Replies: 3
    Last Post: 01-22-2011, 11:25 AM

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