+ Reply to Thread
Results 1 to 6 of 6

Use ROW() within =SUM ?

  1. #1
    Registered User
    Join Date
    05-15-2015
    Location
    Cedar Park, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Use ROW() within =SUM ?

    I have a worksheet with a column of numbers (column F) and in column G I want to have a running total.

    This works =sum($f$4:f8) but if a row is inserted then this fails. I've tried to use =sum($f$f:row()) but it doesn't work - invalid.

    Any pointers?

    thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Use ROW() within =SUM ?

    If a row is inserted where? Why can't you insert rows at the bottom and then sort? If you are using a properly structured Excel table, you'll be able to do this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: Use ROW() within =SUM ?

    Try it like this:

    =SUM(INDIRECT("F1:F"&ROW()))

    then copy down. Alternatively, you could do this:

    =SUM($F$4:$F8)

    if the formula is on row 8, and then copy down.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    05-15-2015
    Location
    Cedar Park, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Use ROW() within =SUM ?

    Pete's answer was the solution - THANK YOU

  5. #5
    Registered User
    Join Date
    05-15-2015
    Location
    Cedar Park, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Use ROW() within =SUM ?

    Thank you but the issue is that inserts break the rows below.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Use ROW() within =SUM ?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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