+ Reply to Thread
Results 1 to 5 of 5

Formula not based on range but when the records stop in column I

  1. #1
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Formula not based on range but when the records stop in column I

    =SUMIF(J4:J60000,"",P4:P60000)

    Above is my formula. The range is to 60000 because the end of the records vary. Formula is in P1. I want it to be based on the last records in I.


    There are similar formulas in M2 and P2 that I will use the same logic for to only sum at the end of the records in column I. All the data will have varying rows.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    32

    Re: Formula not based on range but when the records stop in column I

    Hi,

    Sorry if I'm missing the point with this, but - why can't the formula just refer to a long range? If the number of rows will be changing (increasing), it's going to be difficult for a formula to account for that, without referencing a long range.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula not based on range but when the records stop in column I

    SUMIF is a smart and efficient function.

    It will only calculate up to the used range.

    If you have data down to row 1000 then both of these SUMIF formulas are equally efficient:

    =SUMIF(J4:J1000,"",P4:P1000)

    =SUMIF(J:J,"",P:P)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Formula not based on range but when the records stop in column I

    Will the formula with the long range make my spreadsheet bigger? I am running into problems because I have numerous formulas extended to longer ranges to include all the data that my spreadsheet is huge.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula not based on range but when the records stop in column I

    It depends on what those formulas are.

    See this for tips on improving efficiency:

    http://www.decisionmodels.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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