+ Reply to Thread
Results 1 to 4 of 4

Adding numbers of varrying lengths until coming to blank cell

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    Iowa City, IA
    MS-Off Ver
    2010
    Posts
    7

    Adding numbers of varrying lengths until coming to blank cell

    I have sets of numbers in column A that I am trying to add together in column B. I want to add the numbers until coming to a blank cell, and then start again with the next group. The final product should look something like the example:

    Book1.xlsx

    I was hoping to be able to do this with a single formula in column B that I could just drag down to the bottom rather than just summing them individually like I have been. Any help is greatly appreciated!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Adding numbers of varrying lengths until coming to blank cell

    Does your actual sheet contain identification data in a column to the left of what is now column A. If so, then you could possibly use a pivot table or the sub totals function. If not then a VBA solution may be the answer. Please provide more information on what your actual file looks like.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Adding numbers of varrying lengths until coming to blank cell

    Along the lines of what alansidman has suggested, this is a similar thread: http://www.excelforum.com/excel-prog...pty-cells.html

    That may be a possibility.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Registered User
    Join Date
    09-22-2014
    Location
    Iowa City, IA
    MS-Off Ver
    2010
    Posts
    7

    Re: Adding numbers of varrying lengths until coming to blank cell

    Thanks to both of you. I ended up doing something similar to the post mcmahobt suggested. I used the formula:

    =SUM(A2:A$1000)-SUM(B2:B$1000)

    This worked after pasting it into all of the places I needed totaled.

+ 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] Adding a blank row after identifying certain numbers in a range
    By shivanikharbanda in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2014, 03:20 PM
  2. [SOLVED] Extract numbers of variable lengths from cell
    By Nizz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2013, 10:11 AM
  3. [SOLVED] Split text and numbers of different lengths
    By concatch in forum Excel General
    Replies: 9
    Last Post: 06-01-2012, 09:28 AM
  4. Values not coming in few cell but coming in rest all cells
    By rashmib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 11:19 AM
  5. ms excel work coming up blank in my documents
    By 1lkywmn in forum Excel General
    Replies: 3
    Last Post: 08-14-2006, 09:35 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