+ Reply to Thread
Results 1 to 10 of 10

Multiple Sum Ifs by month

  1. #1
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Question Multiple Sum Ifs by month

    Hi All,
    Some of you may recall I had this problem with quarterly data recently.
    i thought I'd be able to copy it monthly but no such luck - please help I'm not sure what i am doing wrong?

    I have some criteria within my data entry (Budget Entry) tab and I'd like to sum all of the totals.
    If the subproject code (7 digits) begins with 230 or 280 AND the month is 4 I'd like all entries to sum under April.
    or quarterly data I was using Sumproduct and then a ROUNDUP/3 function to get teh data to display in quarters - this works perfectly, but it is not transferrably to months - should i use SUMIFS?

    For quarters I am using:
    SUMPRODUCT('Budget Entry'!$Q$2:$Q$200*((LEFT('Budget Entry'!$F$2:$F$200,3)="230")+(LEFT('Budget Entry'!$F$2:$F$200,3)="280"))*(ROUNDUP('Budget Entry'!$N$2:$N$200/3,0)=COLUMNS($H7:I7)))
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple Sum Ifs by month

    Your sample data are not in the columns suggested in your formula; however, try this formula in cell J7 of your dashboard:

    Please Login or Register  to view this content.
    Note - Your sample data has no values where the subproject code starts with 230, and only one starting with 280. I.e. you'll still see mostly zeros.

    Cheers,
    Last edited by ConneXionLost; 09-12-2016 at 06:02 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Re: Multiple Sum Ifs by month

    Thanks, but i am not sure why you say =MONTH(DATEVALUE(J$4&"1"))
    In my actual workbook i am puttin month (4) in cell W3 and Apr in cell W4 - if that helps.

    As for the 0's I was just giving a sample with dummy data, but I'll keep that in mind.

    thank you so much for your help!!!

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple Sum Ifs by month

    Quote Originally Posted by 1Stacy View Post
    In my actual workbook i am puttin month (4) in cell W3 and Apr in cell W4 - if that helps.
    Yes it does. In that case, in place of =MONTH(DATEVALUE(J$4&"1")), just use =J$3, or on your actual workbook, =W$3.

    Cheers,

  5. #5
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Question Re: Multiple Sum Ifs by month

    That worked great ConneXionLost just one more thing, i wanted to add one more variable *('Budget Entry'!$A$3:$A$200=A5) but when I add it to the above formula it does not work.
    The variable I am trying to add is Site.
    Attached Files Attached Files
    Last edited by 1Stacy; 09-13-2016 at 02:33 PM.

  6. #6
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple Sum Ifs by month

    What do you mean by "it does not work"? What result do you get?

  7. #7
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Re: Multiple Sum Ifs by month

    The box that says The formula you have typed contains an error.

    Thanks for all of your help - I am new to sumproduct and do not understand exactly how it works.
    Last edited by 1Stacy; 09-13-2016 at 03:07 PM.

  8. #8
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple Sum Ifs by month

    No worries, SUMPRODUCT is a challenging formula to work with. Can you post the formula you typed?
    Last edited by ConneXionLost; 09-13-2016 at 03:46 PM.

  9. #9
    Registered User
    Join Date
    07-07-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    68

    Re: Multiple Sum Ifs by month

    =SUMPRODUCT('Budget Entry 16 17'!$P$3:$P$200*('Budget Entry 16 17'!$B$3$B$200=A5)((LEFT('Budget Entry 16 17'!$G$3:$G$200,3)="230")+(LEFT('Budget Entry 16 17'!$G$3:$G$200,3)="280"))*('Budget Entry 16 17'!$O$3:$O$200=B$2))

    My actual tab is called Budget Entry 16 17 and the tab that A5 is referencing is in the tab Infrastructure (which is the same tab that I am trying to display this information)
    Budget Entry column B has the Site names and Infrastructure column A also has the site names that I'd like to match.

    I think I've got it!
    =SUMPRODUCT('Budget Entry 16 17'!$P$3:$P$200*('Budget Entry 16 17'!$B$3:$B$200=A5)*((LEFT('Budget Entry 16 17'!$G$3:$G$200,3)="230")+(LEFT('Budget Entry 16 17'!$G$3:$G$200,3)="280"))*('Budget Entry 16 17'!$O$3:$O$200=B$2))
    It seems to be returning the right values.
    Thanks for your link on SUMPRODUCT!
    Last edited by 1Stacy; 09-13-2016 at 04:34 PM. Reason: forgot to add something

  10. #10
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple Sum Ifs by month

    Great! Enjoy the link.

    Cheers,

+ 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] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  2. [SOLVED] Multiple lines per month need to collate
    By mylittlebookkeeper in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-07-2015, 07:20 AM
  3. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  4. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  5. [SOLVED] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  6. How to create multiple month to date summaries from multiple worksheets
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2010, 02:56 PM
  7. same month/day on x axis for multiple years
    By mjo73 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-15-2006, 02:25 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