+ Reply to Thread
Results 1 to 7 of 7

Sum up until empty

  1. #1
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Sum up until empty

    excel.jpg
    I have this excel, I want in column J to have.
    If it is not empty to show value from I but if it is empty to Sum up until the empty one.
    so in J7 it is SUM(J4:J6)

    Can you help me?

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Sum up until empty

    maybe, put this on J2 and copied down

    =IF(I2="","",SUM($I$2:I2))

  3. #3
    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
    28,207

    Re: Sum up until empty

    In J3 and copy down

    =IF(I3="",SUM($I$1:I3)-SUM($J$1:J2),"")

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sum up until empty

    Another method with ARRAY formula
    In J2, then drag down.
    =IF($I2<>"","",SUM(INDEX($I$1:$I1,MAX(IF($I$1:$I1="",ROW($I1:$I$2),""))-ROW($I$2)+1):$I1))
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets by excel.

  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: Sum up until empty

    How about showing us what results you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Sum up until empty

    Use this for J1 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    cofirm with CTRL+SHIFT+ENTER then copy down

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum up until empty

    Actually this can be done with just a few key strokes without writing any formulas by hand. There is also no need for additional column. This is how it's done:
    1) Press and hold Ctrl key and click on each empty cell in a column where you would want to have a subtotal amount entered.
    2) Release Ctrl key and press and hold Alt key and press equal sign (=) on your keyboard.
    3) Release Alt key.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] How to create a dynamic range if the last cell is empty and the columns have empty cells
    By peter_swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2016, 11:18 PM
  2. Replies: 0
    Last Post: 08-03-2016, 07:01 PM
  3. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  4. Replies: 6
    Last Post: 08-29-2014, 08:31 AM
  5. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  6. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  7. Replies: 0
    Last Post: 06-22-2012, 11:28 AM

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