+ Reply to Thread
Results 1 to 12 of 12

Getting a undefined running total to a single cell

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Lightbulb Getting a undefined running total to a single cell

    Hi...

    I want to get the cumulative total of running values of several columns in to one cell in order the values are entered in the column cells. The issue here is I cannot define how many columns of values are to be predefined.

    Please see the attached excel document. I need the values of L9,M9,N9,O9,P9,Q9,...........................N9.. to be added to H3...
    Attached Files Attached Files
    Last edited by Anuru; 05-12-2014 at 01:50 PM. Reason: SOLVED

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Getting a undefined running total to a single cell

    I am guessing the # of columns the formula would reference would be dynamic, but what would that be based on? how would you determine how many columns to sum?
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Getting a undefined running total to a single cell

    Quote Originally Posted by Melvinrobb View Post
    I am guessing the # of columns the formula would reference would be dynamic, but what would that be based on? how would you determine how many columns to sum?
    Thanks for the reply...
    The number of columns cannot be predefined, it may vary. What I want is, wherever the column totals get ended, that should be shown in H3 as the total....

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Getting a undefined running total to a single cell

    I am not sure I follow. I realize it may vary, but how it varies need to be decided by an input of some sort, whether it be a cell you input a number for the number of columns, or a row that indicates for each column whether you want it included, etc....
    If you wanted to sum l9:q9 for example, it will obviously ignore blanks, so this only will matter if you have values in columns R-AP. If you have values in these columns, what will determine which column to stop at? Would the "input" row only have data in the columns you want summed?

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Getting a undefined running total to a single cell

    Assuming cell I3 would define the # of columns to look at, this formula will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Getting a undefined running total to a single cell

    Sorry if I didn't understand what you are asking..however, the input data will be in row 9, it is the daily production out put which we cannot exactly say when the out put will be over....

  7. #7
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Getting a undefined running total to a single cell

    Quote Originally Posted by Melvinrobb View Post
    Assuming cell I3 would define the # of columns to look at, this formula will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks for the reply...you may please consider G3 (the cut qty, this is 98% accurate, but sometimes production qty is not 100% tallied with the cut qty)as a reference cell, if it is needed for the formula to work...

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Getting a undefined running total to a single cell

    Try
    =SUM($L$9: INDEX($L$9:$AP$9, MATCH(10^100, $L$9:$AP$9)))

    The MATCH finds the last number in that row (9)
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: Getting a undefined running total to a single cell

    It worked!!!!!!!!!!!!!!!...Million thanks..you are so clever and brilliant. May God give you unlimited wisdom ...

  10. #10
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Getting a undefined running total to a single cell

    I have NO idea why you wouldn't just use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    (the blanks that follow the last column in row 9 will have no impact on the sum).
    you have a formula that works, so... just go with it I guess. I am just curious what the difference is, that's all.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Getting a undefined running total to a single cell

    I was thinking the same thing, Melvin.

  12. #12
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Getting a undefined running total to a single cell

    Thank goodness.
    Worried I was missing something extremely obvious.
    I suppose WE still could be. but... I'm not alone. Ha ha...

+ 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] keeping a running total in a single cell
    By shrtdawg73 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-11-2015, 01:55 AM
  2. Running Total Formula in a Single Cell
    By jelenahelp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-11-2014, 01:24 AM
  3. Running Total Formula in a Single Cell
    By jelenahelp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 01:24 AM
  4. Keeping and adding a running total in a single cell, not working the way I want.
    By jlg371 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2009, 06:16 PM
  5. Adding and keeping a running total in a single cell
    By jlg371 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2009, 12:36 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