+ Reply to Thread
Results 1 to 3 of 3

sumproduct to count

  1. #1
    Registered User
    Join Date
    11-09-2006
    Location
    Kansas, USA
    MS-Off Ver
    2013
    Posts
    76

    sumproduct to count

    I'm using the following to count how many times a record meets a certain criteria.

    =SUMPRODUCT((Data!$D$2:$D$65536>=Data!K14)*(Data!$D$2:$D$65536<=Data!L14)*(Data!$A$2:$A$65536="001"))

    I'm look adding a, or "004". but i'm at a loss, any ideas? I my head this is how I would write it out.

    =SUMPRODUCT((Data!$D$2:$D$65536>=Data!K14)*(Data!$D$2:$D$65536<=Data!L14)*(Data!$A$2:$A$65536="001" or "004"))

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Here's one way.....

    =SUMPRODUCT((Data!$D$2:$D$65536>=Data!K14)*(Data!$ D$2:$D$65536<=Data!L14)*((Data!$A$2:$A$65536="001")+(Data!$A$2:$A$65536="004")))

  3. #3
    Registered User
    Join Date
    11-09-2006
    Location
    Kansas, USA
    MS-Off Ver
    2013
    Posts
    76
    That makes since. Thank you VM

+ 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