+ Reply to Thread
Results 1 to 2 of 2

Sumif using the =month() - doesn't work

  1. #1
    Registered User
    Join Date
    05-16-2005
    Posts
    1

    Thumbs down Sumif using the =month() - doesn't work

    I am probably making a very simple mistake here but I can't seem to find it. Thanks in advance to those that reply.

    I need to add a dollar amount in column B (B16:B21) when the date in column A is in a certain month (3 or March). Here is what I have tried:

    =SUMIF(A16:A21,((MONTH(A16:A21)="3")),B16:B21)

    I have tried :

    =SUMIF(A16:A21,">02/31/05",B16:B21) - SUMIF(A16:A21,">=03/31/05",B16:B21)

    Simple example: Answer should be 50 (adding the two number in march's date)

    January 10, 2005 ----100
    January 21, 2005 ----100
    February 3, 2005 ----50
    February 9, 2005 ----50
    March 10, 2005 ----25
    March 10, 2005 ----25

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    This may not be the best solution, but it will get you what you ask...

    I'm not sure MONTH will work with a range... however, you can insert a helper column to list the value of MONTH() and use that in your formula, as such:

    Insert a new column B and enter =MONTH(A16) and copy down through B21. Then use this formula:

    =SUMIF(B16:B21,"=3",C16:C21)

    The return is 50.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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