+ Reply to Thread
Results 1 to 5 of 5

Add values based on month using Sumifs or any other formula

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    5

    Question Add values based on month using Sumifs or any other formula

    I am trying to sum the values based on the month ranges,

    I have created "Named Formulas"

    1) Dates2012 --> A:A which has my date inputs
    2) Expenses2012 --> B:B Which has my expenses

    I want to add the expenses based on month

    I am using

    =SUMIFS(Expenses2012,Dates2012,">=01-01-2012",Dates2012,"<=01-31-2012")
    =SUMIFS(Expenses2012,Dates2012,">=02-01-2012",Dates2012,"<=02-28-2012")
    =SUMIFS(Expenses2012,Dates2012,">=03-01-2012",Dates2012,"<=03-31-2012")
    =SUMIFS(Expenses2012,Dates2012,">=04-01-2012",Dates2012,"<=04-30-2012")

    and so on

    I need your help ...

    Instead of hard coding the dates is there a way I can use Month().

    In the above way I need to change the dates manually(static), please guide me if I can use any Dynamic way.

    I am unable to attach file, please help

    Thanks & Regards

    Jamal A M
    Last edited by ktmjamal; 01-18-2012 at 05:34 AM.

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Add values based on month using Sumifs or any other formula

    Hi Jamal and welcome to the forum.

    You can use SUMPRODUCT for this.

    =SUMPRODUCT(((MONTH($A$2:$A$10)=MONTH(E2))*($B$2:$B$10)))

    Take a look to the example.

    Hope to helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-19-2007
    Posts
    5

    Re: Add values based on month using Sumifs or any other formula

    Thanks a lot Fotis1991, it worked perfect.

    I used this way.

    =SUMPRODUCT(((MONTH(DATES2012)=MONTH(E2))*Expenses2012))

    Thanks & Regards

    Jamal A M

  4. #4
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Add values based on month using Sumifs or any other formula

    Glad to helped you Jamal

    Thanks for the feedback and also for the reb*

    So pls mark your thread, as SOLVED.

  5. #5
    Registered User
    Join Date
    07-19-2007
    Posts
    5

    [SOLVED] Add values based on month using Sumifs or any other formula

    [SOLVED] Thanks for that

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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