+ Reply to Thread
Results 1 to 3 of 3

Sum costs for a month and year using sumifs

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    sc
    MS-Off Ver
    Excel 2007
    Posts
    32

    Sum costs for a month and year using sumifs

    Hello All,

    I am trying to calculate the travel costs for a given month and year using the sumifs function but am either getting errors or a value of zero. Here are the formulas I've tried:

    =SUMIFS(plant1.travel.costs,plant1.travel.dates,MONTH(BD1),plant1.travel.dates,YEAR(BD1))

    =SUMIFS(plant1.travel.costs,month(plant1.travel.dates),MONTH(BD1),year(plant1.travel.dates),YEAR(BD1))

    plant1.travel.costs is a column of costs associated with each business trip, plant1.travel.dates is a column of the dates of the start of the business trip, and BD1 is the first day of the month (ex. 10/1/2014). plant1.travel.dates and BD1 are formatted as dates.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sum costs for a month and year using sumifs

    SUMIFS doesn't allow you to tinker with arrays like that. I would revert to SUMPRODUCT

    =SUMPRODUCT(plant1.travel.costs,--(month(plant1.travel.dates)=MONTH($BD$1)),--(year(plant1.travel.dates)=YEAR($BD$1)))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    sc
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Sum costs for a month and year using sumifs

    Works great! Thanks!
    Rep added!

+ 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] Sumproduct/SUMIFS refrencing Month/Year
    By cartica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2014, 03:15 PM
  2. Replies: 3
    Last Post: 07-28-2014, 08:57 PM
  3. [SOLVED] SUMIFS and Date Criteria (Month Year etc...) but without helper column?
    By JungleJme in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-16-2013, 07:21 AM
  4. [SOLVED] Use TEXT function as Criteria on Sumifs to convert month/year to date format
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2012, 07:49 PM
  5. SUMIFS by month/year
    By Lyric in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2011, 02:39 PM

Tags for this Thread

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