+ Reply to Thread
Results 1 to 5 of 5

Stop Formula After Condition is Met

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2021
    Location
    Fort Worth, TX
    MS-Off Ver
    365
    Posts
    51

    Stop Formula After Condition is Met

    So the problem I'm having is I'm trying to make a formula that is adaptive to the rest of the formula but I don't know how to stop it after the conditions are met. I've attached an example and the highlighted row is the one I'd like fixed. The conditions are if the other cells are blank then that one should be blank too. But if it is the final year in the model then it should equal a certain value. The problem I'm having is I don't know how to stop it after the conditions are met. Any help is appreciated. Thanks
    Attached Files Attached Files

  2. #2
    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
    31,171

    Re: Stop Formula After Condition is Met

    Where are the "conditions" defined?

  3. #3
    Registered User
    Join Date
    03-26-2021
    Location
    Fort Worth, TX
    MS-Off Ver
    365
    Posts
    51

    Re: Stop Formula After Condition is Met

    The condition is just if the next year is blank or if it's the final year in the model then it equals sales expense. The attachment is really just an example of what I'd like it to look like if it works

  4. #4
    Registered User
    Join Date
    06-11-2021
    Location
    Bergen, Norway
    MS-Off Ver
    365
    Posts
    5

    Re: Stop Formula After Condition is Met

    In B18: =IF(NUMBERVALUE(RIGHT(B14;2))=0;$B$3;IF(AND(B17=0;C15="";B15<>0);$B$4;0))

    The first IF checks if the right number is 0 in the year (because its the first year) and if it's true it will grab the value from B3. If it's not true, I ask if this years asset management fees are 0, and the next year's date is empty, and this years date is NOT empty (in essence, this checks if this is the last year based on the dates) and it gives the result from B4, else it gives 0.

  5. #5
    Registered User
    Join Date
    03-26-2021
    Location
    Fort Worth, TX
    MS-Off Ver
    365
    Posts
    51

    Re: Stop Formula After Condition is Met

    I get a False statement on the blank cells but that's an easy fix. Thanks for your help

+ 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] Stop after first match of IF condition
    By bigjdawg43 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2020, 03:05 PM
  2. [SOLVED] Stop macro if condition not met
    By hazzaska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2017, 11:58 AM
  3. [SOLVED] Stop Calculation once a condition is met
    By stulesley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-15-2017, 08:57 AM
  4. [SOLVED] Adjust IF Formula to Stop Calculation if Condition Not Met
    By paulunh11 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-26-2017, 01:09 PM
  5. Replies: 3
    Last Post: 03-05-2015, 02:33 PM
  6. [SOLVED] Stop for loop at certain condition
    By atomichybrid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2014, 07:34 PM
  7. Stop calculation once a condition is met
    By ryefield in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2013, 07:30 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