+ Reply to Thread
Results 1 to 3 of 3

noncontiguous cells

  1. #1
    Vivian
    Guest

    noncontiguous cells

    I need to sum up a column of noncontiguous cells.
    (eg. G3+G6+G9+G12); with the result being presented at
    the bottom of the column.

    However, whenever I insert rows in between the data and
    the row that contains the total sum, I need to manually adjust the summation
    formula.(eg. formula above + G15+G18+G21).
    On the other hand, when I delete the rows in between the data and row that
    contains the total sum, a reference error pops up. (so I need to manually
    adjust my formula again)

    I have at least 50 columns to perform this summation for. Is there any sort
    of formula that helps to minimize the manual labour?

    Thanks you in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Quote Originally Posted by Vivian
    However, whenever I insert rows in between the data and
    the row that contains the total sum, I need to manually adjust the summation
    formula.(eg. formula above + G15+G18+G21).
    This doesn't seem right. Excel by default caters for rows being added. Can you explain the exact sequence of events, or post a sample spreadsheet

  3. #3
    Ragdyer
    Guest

    Re: noncontiguous cells

    Say that your datalist goes from G3 to G99.

    You could enter this in G2 or G100, or wherever:

    =SUMPRODUCT((MOD(ROW(INDIRECT("G3:G99")),3)=0)*INDIRECT("G3:G99"))

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Vivian" <Vivian@discussions.microsoft.com> wrote in message
    news:14890C5A-27A2-473B-A22A-30C6D27F2D15@microsoft.com...
    >I need to sum up a column of noncontiguous cells.
    > (eg. G3+G6+G9+G12); with the result being presented at
    > the bottom of the column.
    >
    > However, whenever I insert rows in between the data and
    > the row that contains the total sum, I need to manually adjust the
    > summation
    > formula.(eg. formula above + G15+G18+G21).
    > On the other hand, when I delete the rows in between the data and row that
    > contains the total sum, a reference error pops up. (so I need to manually
    > adjust my formula again)
    >
    > I have at least 50 columns to perform this summation for. Is there any
    > sort
    > of formula that helps to minimize the manual labour?
    >
    > Thanks you in advance!



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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