+ Reply to Thread
Results 1 to 5 of 5

SUMIF or SUMPRODUCT Within a month

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    40

    SUMIF or SUMPRODUCT Within a month

    I am looking for a way to total the number of days people spent (L16) at our house (G3:G500) to a specific month (E3:E500) The month in this case is July. dd/mm/yyyy is the format

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: SUMIF or SUMPRODUCT Within a month

    Have you tried a Pivot Table ?

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: SUMIF or SUMPRODUCT Within a month

    Try

    in L16
    =SUMPRODUCT((MONTH(E3:E500)=7)*(G3:G500))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    08-08-2012
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: SUMIF or SUMPRODUCT Within a month

    Thanks Special K, that did the trick!

  5. #5
    Registered User
    Join Date
    08-08-2012
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: SUMIF or SUMPRODUCT Within a month

    I used this formula; =SUMPRODUCT((MONTH(E3:E500)=1)*(G3:G500)) to count January. There were no stay during January but L10 is showing 467.
    There were no stays in February and March and L11 and L12 both show zero as they should. April thru August are showing proper calculations. Why is January acting hinky?

+ 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