+ Reply to Thread
Results 1 to 6 of 6

Sum Multiple Columns based on Month (Need Formula)

  1. #1
    Registered User
    Join Date
    10-23-2019
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    3

    Sum Multiple Columns based on Month (Need Formula)

    Hi, all!

    I am looking for a formula that can add different dollar totals together based on the months that they are due. Based on the attached sample, I would like to add columns C, E, F, G, I, J, and K together depending on the date in columns B, D and H and put the information into a column for that specific month.

    I would like a formulas for columns L, M and N that say if the month in columns B, D or H is (Month) then add columns C, E, F, G, I, J and K. The caveat to this is that were are different months for the same SKU so the formula needs to add only the columns to the right of the correct month.

    I know I am not wording this correctly. Please see the attached example for better information.

    Thanks!!
    Attached Files Attached Files
    Last edited by bd827; 10-23-2019 at 11:00 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum Multiple Columns based on Month (Need Formula)

    Hello and welcome to the forum.

    Change L3:O3 to 9/1/2019 through 12/1/2019 (you can format these however you'd like).

    Then you can use this in L4:

    =IF(EOMONTH($B4,-1)+1=L$3,$C4,0)+IFERROR(IF(EOMONTH($D4,-1)+1=L$3,SUM($E4:$G4),0),0)+IF(EOMONTH($H4,-1)+1=L$3,SUM($I4:$K4),0)

    Drag to the right and down.

  3. #3
    Registered User
    Join Date
    10-23-2019
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Sum Multiple Columns based on Month (Need Formula)

    Hi and thanks for the quick response!

    For clarification, where/how in the formula do I reference the month? In your example, how would I show that I only want info for the month of September?

    Thanks, again.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum Multiple Columns based on Month (Need Formula)

    The references to the dates are highlighted in blue. The references to the months are highlighted in red.

    =IF(EOMONTH($B4,-1)+1=L$3,$C4,0)+IFERROR(IF(EOMONTH($D4,-1)+1=L$3,SUM($E4:$G4),0),0)+IF(EOMONTH($H4,-1)+1=L$3,SUM($I4:$K4),0)

    Make sure that you change L3:O3 to actual dates as mentioned in post #2.

  5. #5
    Registered User
    Join Date
    10-23-2019
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Sum Multiple Columns based on Month (Need Formula)

    This is perfect!!! I had changed the dates in L2:O2 instead of L3:O3.

    Thanks so much!

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum Multiple Columns based on Month (Need Formula)

    You're welcome. Happy to help.

+ 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 for Weighted Averages Based on Multiple Columns? Array Formula?
    By StanLeakup in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-20-2019, 02:22 AM
  2. Sum multiple columns based on month header
    By pphg in forum Excel General
    Replies: 3
    Last Post: 04-21-2016, 03:52 AM
  3. [SOLVED] date formula that puts the first of the prior month based on which month it is
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-08-2015, 05:38 PM
  4. [SOLVED] Averaging Multiple columns based on Weeknum compared to Month
    By zdonner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-14-2014, 03:43 PM
  5. [SOLVED] Formula for amount on previous month based on current month
    By Yu Marquez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 12:42 AM
  6. Formula for average duration for each month based on the ending month
    By bobby769 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2013, 11:18 AM
  7. Replies: 3
    Last Post: 09-25-2007, 10:26 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