+ Reply to Thread
Results 1 to 2 of 2

Formula stop a calculation running once it has reached a defined criteria

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    Midlands
    MS-Off Ver
    365 Version 2208
    Posts
    10

    Formula stop a calculation running once it has reached a defined criteria

    Hello all,

    Long time reader and user of this forum but little poster

    I have a problem i am hoping someone can advise upon.

    I have a very large data set across a number of Tabs which requires a Sumif across all the tabs. Unfortunately, the look up criteria is not set, so could be looking up 10 items across the numerous tabs, or could be looking up 100 items.

    I currently have it looking up a max of 100 items, but this is user defined and unlikely to be this many, so a simple max formula can determine the end of the data set to look up. The problem i have is the data set is consderable, so running this formula 100 times on 100 rows uses a vast amount of processing.

    Ideally i want the formula to stop running the Sumif once it has reached the last row of data to look for (if that makes sense - the user might have only entered values to look up for 30 rows, and therefore want the formula to stop processing on 30). I am sure i have seen this somewhere before, but cant find it now...

    If anyone has any solutions, that would be great thank you.

    Example worksheet attached.
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Formula stop a calculation running once it has reached a defined criteria

    Using sheet name
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Look attach file yellow column
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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] Sum until value reached then stop
    By andrugrasu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2021, 02:20 AM
  2. [SOLVED] VBA Code to stop Running once the Todays date reached mentioned date
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2018, 02:47 PM
  3. Stop and return the value when a criteria has been reached
    By mellowz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2018, 01:34 AM
  4. [SOLVED] Stock age(Stop when target reached formula)
    By toby89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2018, 05:09 PM
  5. Stop running macro when time value in a cell reached or exceed
    By bezbid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2015, 08:23 PM
  6. Stop when a value is reached
    By tommycasper in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2014, 10:05 AM
  7. Replies: 1
    Last Post: 04-18-2012, 05:49 PM

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