+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Subtracting a SUMPRODUCT result from a COUNTIF result

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Subtracting a SUMPRODUCT result from a COUNTIF result

    Morning

    I have a COUNTIF formula which counts the amount of "NO MATCH"es I get in column X
    Please Login or Register  to view this content.
    The result in my current case has 71 "NO MATCH"es.

    I then have a SUMPRODUCT which counts the amount of blanks there are in column R as long as column A has data in it
    Please Login or Register  to view this content.
    The result in this case is 2.

    I then use a seperate field to minus the SUMPRODUCT from the COUNTIF. The result is 69. Which is what I'm after.

    That's fine and all, but to use 3 fields to do the job of 1 is ludicrous.

    I have tried to combine them into one formula with the below
    Please Login or Register  to view this content.
    But all I'm getting is #VALUE!
    Can anyone tell me what is wrong with my formula here?

    Thanks in advance.
    Last edited by Nikeyg; 10-20-2011 at 05:44 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Subtracting a SUMPRODUCT result from a COUNTIF result

    parentheses are missing

    use

    =(COUNTIF(X7:X65536,"NO MATCH"))-(SUMPRODUCT((A7:A65536>0)*(R7:R65536="")))
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Subtracting a SUMPRODUCT result from a COUNTIF result

    Thanks Azam!!

+ 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