+ Reply to Thread
Results 1 to 15 of 15

Summing of Alternating Columns

  1. #1
    Registered User
    Join Date
    03-23-2018
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    35

    Summing of Alternating Columns

    Hello,

    I have a table with rows of donors and columns with alternating gift dates and gift amounts. I'm trying now to sum Gifts within 12 months of the first gift date ("Giving Year 1"), 13 to 24 months of the first gift date ("Giving Year 2").

    I'm having trouble with using a sumproduct formula, stuck on the 2nd argument which I know is wrong. This is a variation of a prior issue that forum member ChemistB helped me with. I've tried a number of different date solutions but am stymied. I'd be grateful for any guidance. Thank you.

    Regards,

    Paul
    Attached Files Attached Files

  2. #2
    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,758

    Re: Summing of Alternating Columns

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

    And for the Count:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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


  3. #3
    Registered User
    Join Date
    03-23-2018
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    35

    Re: Summing of Alternating Columns

    Hi TMS, thanks for your reply.

    I need to sum not all the dates, but for dates within 12 months and 24 months of the first gift date.

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Summing of Alternating Columns

    Based on TMS's formula, for Giving Year 1:
    Please Login or Register  to view this content.
    For Giving Year 2:
    Please Login or Register  to view this content.
    Change the red numbers for subsequent years. Does that give you what you're looking for?
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Summing of Alternating Columns

    Edit:
    How about this in E4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy in all directions.
    Last edited by Jacc; 05-14-2019 at 05:21 PM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  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,758

    Re: Summing of Alternating Columns

    @Melvosh: Thank you. My work here is done

  7. #7
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Summing of Alternating Columns

    @TMS, you did all the hard work, I just adapted

    @heyhsia, both the solution I offered and the solution Jacc offered look at column B for the initial date. You'll want to make sure that's equal to or before the date in column L, otherwise there will be gift amounts that are not included.

  8. #8
    Registered User
    Join Date
    03-23-2018
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    35

    Re: Summing of Alternating Columns

    TMS, Melvosh and Jacc, thank you for your replies.

    I got Melvosh's formula to work for various time periods (12, 24, 36 months). I was unable to get Jacc's formula to work, which I'm sure is due to lack of understanding of how the formula works; the use of sumproduct is new to me, as are mod/column functions. I will continue to study these formulas and try to modify them.

    One thing I noticed is that Melvosh's formula does not allow me to add new columns to the file. Is there a way to modify the formula that would permit me to add columns?

    Thanks again,

    Paul

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Summing of Alternating Columns

    Seems to work. I first wrote cell E3 but of course I meant E4.
    Attached Files Attached Files

  10. #10
    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,758

    Re: Summing of Alternating Columns

    You're welcome.


    One thing I noticed is that Melvosh's formula does not allow me to add new columns to the file. Is there a way to modify the formula that would permit me to add columns?
    Add columns where? My formula and Melvosh's adaptation cater for the columns in your sample file. If you were to add columns at the right hand end, you would just need to change the last column reference.



    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.

  11. #11
    Registered User
    Join Date
    03-23-2018
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    35

    Re: Summing of Alternating Columns

    Jacc, thanks for the file.

    In Melvosh's and Jacc's recent file, adding a column between say Columns E and F set all the results to zero.

  12. #12
    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,758

    Re: Summing of Alternating Columns

    The formulae are trying to determine "every other column" based on their current position. If you insert a single column, what were odd columns will become even and vice versa. You'd need to adjust the column reference in some way. In my original SUM formula, that would look like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    03-23-2018
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    35

    Re: Summing of Alternating Columns

    Got it. Thanks TMS. I'll work it out.

    Thanks again Melvosh and Jacc.

  14. #14
    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,758

    Re: Summing of Alternating Columns

    You're welcome. Thanks for the rep.

  15. #15
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Summing of Alternating Columns


    '''''''

+ 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] Conditional Summing of Alternating Columns
    By heyhsia in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2019, 04:58 PM
  2. Replies: 7
    Last Post: 08-04-2017, 05:49 PM
  3. delete columns alternating
    By jszmaia in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-21-2013, 02:51 PM
  4. Alternating Values in Columns
    By Synchrony in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 08:42 PM
  5. [SOLVED] Collate information by alternating between two columns.
    By PeterR in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2012, 08:56 AM
  6. [SOLVED] VBA Looping Issue_Merging Alternating Columns
    By markp5 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2012, 11:59 AM
  7. insert alternating columns and rows
    By iturnrocks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2007, 05:23 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