+ Reply to Thread
Results 1 to 7 of 7

Sum Every Nth column Starting From Column 1

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    102

    Sum Every Nth column Starting From Column 1

    Hi,

    I'm using the below formula to calculate every 2nd column in a table and it's working well, I found it at the following site.

    https://exceljet.net/formulas/sum-every-nth-column

    I also need to calculate every 2nd column but starting from the first column but cannot seem to find a solution. Can I modify the below in anyway to achieve what I need?

    Please Login or Register  to view this content.
    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,987

    Re: Sum Every Nth column Starting From Column 1

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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 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,987

    Re: Sum Every Nth column Starting From Column 1

    You could give this a try:

    =SUM(FILTER(Table1,ISODD(COLUMN(Table1))))

    Or this:

    =SUM(FILTER(Table1,MOD(COLUMN(Table1),2)=1))
    Last edited by AliGW; 04-15-2024 at 08:46 AM.

  4. #4
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    102

    Re: Sum Every Nth column Starting From Column 1

    I discovered the solution myself, SEQENCE required a start position because it defaults to 1. The starting position should be set to 0 as per the formula below.

    Please Login or Register  to view this content.
    Last edited by AliGW; 04-15-2024 at 08:49 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  5. #5
    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,987

    Re: Sum Every Nth column Starting From Column 1

    This is shorter:

    =SUM(FILTER(Table1,MOD(COLUMN(Table1),2)=1))

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

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

    Re: Sum Every Nth column Starting From Column 1

    What does B2 contain? If it is 2 then you could just change the =0 to =1 near the end of the formula.

    Also, you are using two functions, FILTER() and SEQUENCE() that are only available in the latest versions of XL, so please update your profile to show the version that you are using.

    Hope this helps.

    Pete

  7. #7
    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,987

    Re: Sum Every Nth column Starting From Column 1

    Thanks for the rep.

    Please update your forum profile to the version of Excel that you are using, as Pete mentioned.

+ 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] formula to sum every 3rd column including starting column
    By ShaunG in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2021, 02:23 AM
  2. return to starting column
    By ffffloyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2017, 05:49 AM
  3. Replies: 4
    Last Post: 10-01-2015, 08:55 AM
  4. Macro that will print each column starting with column B on a seperate page
    By awebzz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 12:25 PM
  5. copy data from one column to column on another sheet starting with first open cell
    By indiana115 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 05:50 PM
  6. Replies: 3
    Last Post: 01-08-2013, 01:27 PM
  7. create multiple column rows starting from data in one column
    By thotosch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2012, 01:20 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