+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT counts 1 (Jan) even when cell is blank

  1. #1
    Registered User
    Join Date
    08-06-2008
    Location
    Auburn, WA
    Posts
    3

    SUMPRODUCT counts 1 (Jan) even when cell is blank

    Not sure if this is the right place, however I am hours into researching and attempting to format the columns and still getting the same result.

    This formula works for all other months except for Jan.

    When I get to the line for January, it gives me output of ALL cells that are empty. (11000+)

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=1))

    At first I thought it was just formatting, excel rounding up or something; however there seems to be something specific about the value "1" when attempting this.

    Any suggestions or help would be greatly appreciated.

    Zack

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=1),--(WAREHOUSE LOCATIONS'!C$2:C$11612<>""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-06-2008
    Location
    Auburn, WA
    Posts
    3

    "Formula you typed contains an error..."

    Thank you for the help.

    Regrettably I get an error message referring to Array2. Excel help has highlighted the word LOCATIONS for some reason.

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=2),--(WAREHOUSE LOCATIONS'!C$2:C$11612<>""))

    Is there a reason you might know of that would keep this from working for Jan

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=1))

    when

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=12))

    works for Dec?

    Zack

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Looks like I missed an apostrophe before the sheetname...

    Try again with:

    =SUMPRODUCT(--(MONTH('WAREHOUSE LOCATIONS'!C$2:C$11612)=1),--('WAREHOUSE LOCATIONS'!C$2:C$11612<>""))

    Excel sees blank cells as Jan/0/1900 when dealing with dates...so it assumes all your blank cells are the month of January... so you have to exclude the blanks using the 2nd condition in the formula.
    Last edited by NBVC; 08-06-2008 at 02:04 PM.

  5. #5
    Registered User
    Join Date
    08-06-2008
    Location
    Auburn, WA
    Posts
    3

    I missed that too.. thank you, it worked perfectly!!

    Let me know if you need any help in the future "butchering" excel formulas!!

    Zack

+ 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