+ Reply to Thread
Results 1 to 10 of 10

Multiple criteria countif or sumproduct

Hybrid View

  1. #1
    Registered User
    Join Date
    09-16-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need some guidance with multiple criteria countif or sumproduct arrray, or combo

    Thanks for the replies. I am working through the suggestions now. I am attempting to use the first suggestion and I am getting a #Value error. I currently have

    {=SUMPRODUCT((('Entire Sites - Offices - Staff'!B5:B99="Northern Oklahoma District")+('Entire Sites - Offices - Staff'!B5:B99="*Rocky Mountain District*")),--('Entire Sites - Offices - Staff'!G5:G100>0),--('Entire Sites - Offices - Staff'!G5:G83<60))}


    Entered by hitting shift cnrl enter.
    Does pulling data from a different worksheet cause problems?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need some guidance with multiple criteria countif or sumproduct arrray, or combo

    No need for CSE...

    Your #VALUE! error will (most likely) be result of fact your final 2 ranges are of different dimension to remainder - ie should both be G5:G99 rather than G5:G100 / G5:G83, when using double unary (--) method all ranges should be of equal dimensions.
    Last edited by DonkeyOte; 09-16-2009 at 02:18 PM.

  3. #3
    Registered User
    Join Date
    09-16-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need some guidance with multiple criteria countif or sumproduct arrray, or combo

    Thanks for the reply! So close now. I am now returning a 0. Everything looks good and I am wondering if the database that generates the data is giving me some kind of formatting that is causing problems. I verified that the numbers are numbers and not text. Think of anything else to double check?

    Thanks again!

    Current line returning 0 Should be returning 5 or more.

    =SUMPRODUCT((('Entire Sites - Offices - Staff'!B5:B99="Northern Oklahoma District")+('Entire Sites - Offices - Staff'!B5:B99="Rocky Mountain District")),--('Entire Sites - Offices - Staff'!G5:G99>0),--('Entire Sites - Offices - Staff'!G5:G99<60))

  4. #4
    Registered User
    Join Date
    09-16-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple criteria countif or sumproduct

    Thanks, it seems to be working now. I copied and pasted the same line into a different cell and it seems to be working just fine. Thanks for all the help. This is a great forum.

+ 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