+ Reply to Thread
Results 1 to 5 of 5

How to stop sum if function

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    How to stop sum if function

    Please have a look at my attachment.

    In the "INVENTORY" tab, E4-6 and F4-6 are working fine. G4-6 I need to stop counting on the "STOCK MOVEMENT'" tab after the entry 'STOCKTAKE' entry in A9. As I will be using this every month, the entry will not always be in E9 as the date will differ each month. Is there any way I can adjust the formula so I can, for example type a date or value into G3 on the "INVENTORY" tab to indicate where I want the formulas in G4-6 to stop counting?Book1.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to stop sum if function

    Maybe something like this:

    Please Login or Register  to view this content.
    I'd highly recommend changing your other SUMIF in E and F from:

    =SUMIF('STOCK MOVEMENT'!B:B,B4,'STOCK MOVEMENT'!C:C)

    to

    =SUMIF('STOCK MOVEMENT'!B4:B45313,B4,'STOCK MOVEMENT'!C4:C45313)

    Otherwise, your formulas are calculating against over 1,000,000 rows. 45,000 is a lot less, and when you have lots of SUMIF formulas you will see a significant change in performance.
    Last edited by daffodil11; 04-13-2014 at 04:21 AM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: How to stop sum if function

    Yup Im already noticing a slower performance. Where do I put the code you gave and what will it do?

  4. #4
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: How to stop sum if function

    The formula is only picking up some of the values but not all

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to stop sum if function

    I thought you said you didn't want it to pick up all. Only as far down as STOCKTAKE.

+ 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. How to stop function running
    By Theodjinn in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-04-2017, 11:14 PM
  2. Need to start/stop sum function
    By hagek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-20-2014, 03:11 PM
  3. Stop today function calculating
    By excelstacy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-22-2013, 05:39 PM
  4. [SOLVED] Stop a function from invoking
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2011, 12:11 PM
  5. Stop Function From Running
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2011, 05:04 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