+ Reply to Thread
Results 1 to 6 of 6

Sum a Range until a blank Row

  1. #1
    Registered User
    Join Date
    06-13-2016
    Location
    Maine, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Sum a Range until a blank Row

    Capture.PNGHello, I need a function that will sum a range of cells until a blank row is reached.
    Below is an example with the SUM column that I would like to reproduce with a formula.
    - the number of columns to be summed never changes
    - the number of rows to be summed changes
    - the range to be summed is marked by both a text cell containing ":" and is both preceded and followed by a blank row.

    I think the formula will need to incorporate the OFFSET and MATCH functions but I am not sure...

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,443

    Re: Sum a Range until a blank Row

    Hi, and welcome to the forum.

    Please upload the workbook not a picture. Not many of us are inclined to recreate your data when you have it available.
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-13-2016
    Location
    Maine, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Sum a Range until a blank Row

    I thought I did - sorry. I seem to be having trouble adding the attachment.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    20,237

    Re: Sum a Range until a blank Row

    Try

    =IF(A2<>"",SUM(OFFSET($B2,MATCH("*:*",$A2:A14,0)-1,,MATCH("*:*",$A3:A14,0)-MATCH("*:*",$A2:A14,0),4)),"")

    BUT data must have cell with ":" after last data block e.g. "END:"

  5. #5
    Registered User
    Join Date
    06-13-2016
    Location
    Maine, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Sum a Range until a blank Row

    Fantastic! Thank you

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    20,237

    Re: Sum a Range until a blank Row

    If your problem has been addressed could you please mark thread as solved ("Thread Tools" at top of first post)

    and thank for the feedback.

+ 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] Go to right thru a range and skip all blank cells, return value of first non-blank in rang
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2015, 03:47 PM
  2. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  3. Count range for Text and return a Blank if Blank Range
    By mjfox52610 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-06-2013, 10:04 AM
  4. Replies: 15
    Last Post: 04-25-2012, 05:21 PM
  5. Delete Blank Rows-Blank Row between my data range
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2010, 02:52 PM
  6. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 AM
  7. Sumif to return a blank if sum range is blank
    By S0ck3t@yahoo.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 05:30 AM

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