+ Reply to Thread
Results 1 to 8 of 8

Horizontal Running Total with Table References

  1. #1
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Horizontal Running Total with Table References

    Hey all,

    I'm writing a formula to calculate a horizontal running total in a table. To do so, I need to be able to lock the first column but unlock the second column so that as the formula is dragged across the columns the sum range will expand. This is easy to do without table formulas, like so:

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


    But I'm unsure what the syntax is for a table formula.

    Unlocked:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    When it is dragged to the right:

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


    Locked:

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


    When it is dragged to the right:

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


    Ideally, I'd like Column1 to lock but Column2 to become Column3 when the formula is dragged to the right. Is this possible?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Horizontal Running Total with Table References

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Horizontal Running Total with Table References

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    dragged across.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Horizontal Running Total with Table References

    This worked!! Thank you so much for your help!

    Edit: I may have spoken too soon. Doesn't appear to be working. Any additional help would be greatly appreciated.

    Edit 2: I took a closer look and it is working Sorry for the confusion!
    Last edited by takoyaki; 09-14-2022 at 01:46 PM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Horizontal Running Total with Table References

    Doesn't appear to be working.
    Is not very helpful. In what way doesn't it appear to be working? Works for me. How not so for you?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Horizontal Running Total with Table References

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  7. #7
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Horizontal Running Total with Table References

    Sorry about that - your answer was perfect. I was trying to apply the same syntax to a SUMIF and it wasn't working properly, but SUMPRODUCT worked like a charm! Thank you again!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Horizontal Running Total with Table References

    You're welcome. Thanks for the rep.

+ 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] Running total on filtered table
    By Notooorious in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2020, 03:22 AM
  2. Calc dynamic running total in horizontal sequence
    By Giovi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2019, 01:38 AM
  3. Calc dynamic running total in horizontal sequence
    By Giovi in forum Excel General
    Replies: 1
    Last Post: 04-22-2019, 11:35 PM
  4. [SOLVED] Horizontal running total , sales figures
    By makinmomb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2014, 10:19 AM
  5. Pivot table and running total
    By PaulGG in forum Excel General
    Replies: 2
    Last Post: 11-29-2005, 04:20 PM
  6. Pivot table and running total
    By PaulGG in forum Excel General
    Replies: 0
    Last Post: 11-28-2005, 05:45 PM
  7. [SOLVED] % of Running Total to Grand Total in Pivot Table
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2005, 04:05 PM

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