+ Reply to Thread
Results 1 to 4 of 4

Sumproduct using Month as one of the criteria

  1. #1
    Registered User
    Join Date
    02-17-2008
    Posts
    51

    Sumproduct using Month as one of the criteria

    Hi Guys,

    I am always getting an error #NUM when I enter the Month function into the SUMPRODUCT formula. Here is the table:

    Column A
    07/01/2008
    08/01/2008
    07/03/2008
    09/02/2008

    Column B
    Sales
    Tech
    Tech
    Sales

    Column C
    Majors
    Majors
    Majors
    National

    I have other 3 columns to add as part of my criterias but here is my formula:

    =SUMPRODUCT(--(MONTH($A$1:$A$5)=7),--($B$1:$B$5="Sales"),--(!$C$1:$C$5="Majors))

    The result should be 1 but I am always getting #NUM.

    Your help on this is appreciated!

  2. #2
    Forum Contributor wmorrison49's Avatar
    Join Date
    09-25-2007
    Posts
    267
    I did almost the same thing and I got 1, the answer you are looking for. The only thing I changed was I got rid of the exclamation point in front of $C$1 in the last parenthetical term. So my formula was this:

    =SUMPRODUCT(--(MONTH($A$1:$A$5)=7),--($B$1:$B$5="Sales"),--($C$1:$C$5="Majors"))
    And like I said, this gave me 1 as the result.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695
    I don't think that the MONTH function will cause a #NUM! error. In SUMPRODUCT that could be caused if you try to reference the whole column, your formula has a couple of typos. I assume you are trying

    =SUMPRODUCT(--(MONTH($A$1:$A$5)=7),--($B$1:$B$5="Sales"),--($C$1:$C$5="Majors"))

    That's a viable formula.....

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    =SUMPRODUCT(--(MONTH($A$1:$A$5)=1),--($B$1:$B$5="Sales"),--($C$1:$C$5="Majors"))
    thats coz D/M/Y on my Settings getting rid of the ! did the trick definately
    Last edited by martindwilson; 08-22-2008 at 02:24 PM.

+ 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. Counting the Number of Dates with Matching Month Criteria
    By zom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2008, 07:47 PM
  2. SumProduct error when using Year , Month and text criteria
    By jsrobin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2008, 10:56 PM
  3. using Sumproduct with multiple criteria
    By jchambers00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2007, 11:01 AM
  4. Sumproduct using various criteria
    By Darlo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2007, 10:02 AM
  5. SUM (not sumproduct) with 2 criteria
    By duane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2007, 02:29 PM

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