+ Reply to Thread
Results 1 to 4 of 4

Thread: Conditional Count

  1. #1
    Forum Contributor
    Join Date
    09-18-2007
    Posts
    116

    Conditional Count

    Hello,

    I am using the following forumula to count the number of "X" in J when "T3A3" is in F on the same line and it works fine

    =SUMPRODUCT((AM!F13:F240="T3A3")*(AM!J13:J240="X"))

    Now i only need to count the X if a code in a list of codes held in sheet codelist cells A1 to A10 is entered in row H

    how do i do this

    Many thanks
    Last edited by stoney1977; 01-17-2010 at 06:01 AM.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: complex forumal

    Hi,

    You can insert the Match() function in your Sumproduct() formula ...

    HTH

  3. #3
    Forum Contributor
    Join Date
    09-18-2007
    Posts
    116

    Re: complex forumal

    How would I do that can you give me an example please
    Last edited by DonkeyOte; 01-17-2010 at 05:55 AM. Reason: Unnec. quote removed

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    re: Conditional Count

    Quote Originally Posted by stoney1977
    Now i only need to count the X if a code in a list of codes held in sheet codelist cells A1 to A10 is entered in row H
    Elaborating on JR's post:

    =SUMPRODUCT(ISNUMBER(MATCH(AM!$H$13:$H$240,codelist!$A$1:$A$10,0))*(AM!$J$13:$J$240="X"))

+ 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.2.0