+ Reply to Thread
Results 1 to 4 of 4

Problem With Sumproduct

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    152

    Problem With Sumproduct

    Hi all im trying to get the below formula to work, but its not quite right, What im trying to ask it is to look in column D and check the Date against cell B9, then check column R to make sure it says One Man Crew, also make sure column B doesnt say DDR then add the totals in column AQ, but the below column doesnt seem to take into account the first part, checking against the date (--(North!$D$2:$D$50000=B9)

    Has anyone got any ideas what ive done wrong.

    SUMPRODUCT(--(North!$D$2:$D$50000=B9)--(North!$R$2:$R$50000="One Man Crew"),--(+NOT(North!$B$2:$B$50000="DDR")),--(North!$AQ$2:$AQ$50000))

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Problem With Sumproduct

    You missing a delimiter:

    Formula: copy to clipboard
    SUMPRODUCT(--(North!$D$2:$D$50000=B9),--(North!$R$2:$R$50000="One Man Crew"),--(NOT(North!$B$2:$B$50000="DDR")),--(North!$AQ$2:$AQ$50000))

    Also, I wouls suggest you to keep range lower (if you don't have 50.000 rows to use... to 5.000, or how much you need)
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    152

    Re: Problem With Sumproduct

    perfect thank you for that, the sheet is around 30,000 lines. what is the reasoning of lowering the number?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Problem With Sumproduct

    SUMPRODUCT is a slow function that take lot of resources.
    If you use 2007, as your profile say, then you should use SUMIFS function that is faster.

+ 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