+ Reply to Thread
Results 1 to 4 of 4

Thread: Months

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Bethlehem, Pa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Months

    I'm setting up a Sumifs formula that utilizes three criteria. One is from a column of dates. How do I phrase the formula to identify only a specific month and ignore the day? I thought it should be a simple process of string identification, but I'm stymied. Thanks for the help.
    Steve
    Last edited by SteveJF; 12-11-2010 at 11:44 PM.

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,711

    Re: Months

    Try something like these:
    D1: =SUMIFS(B1:B40,A1:A40,">=2/1/2010",A1:A40,"<3/1/2010")
    or...using a date cell
    C1: 02/01/2010
    D1: =SUMIFS(B1:B40,A1:A40,">="&(EOMONTH(C1,-1)+1),A1:A40,"<"&(EOMONTH(C1,0)+1))
    Is that something you can work with?
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    Bethlehem, Pa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Months

    Thanks Ron! It works fine... still surprised that it can't be something as basic as simple identification of a specific string, ie Jan, Feb etc.

    Steve

  4. #4
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,711

    Re: Months

    Well, you asked for a SUMIFS solution...
    If you're open to other approaches, here are a couple:
    =SUMPRODUCT(--(TEXT(A1:A40,"mmm")="Feb"),B1:B40)
    =SUMPRODUCT((A1:A40<>"")*(MONTH(A1:A40)=2),B1:B40)
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

+ 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.2.0