+ Reply to Thread
Results 1 to 3 of 3

How does this SUMPRODUCT formula work?

  1. #1
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    How does this SUMPRODUCT formula work?

    I found a formula online that works perfectly to count the number of matches between two ranges, but I have no idea how it works. Can someone who understands please explain? Thank you!

    =SUMPRODUCT(--ISNUMBER(MATCH(Range1,Range2,0)))

  2. #2
    Registered User
    Join Date
    10-10-2015
    Location
    Houston
    MS-Off Ver
    2013
    Posts
    26

    Re: How does this SUMPRODUCT formula work?

    I will give it a shot.

    Lets say the 2 ranges are 1,2,3,4,5,6 and 10,20,6,5,40,3,9,1.
    The MATCH function will return{8,#N/A,6,#N/A,4,3}
    ISNUMBER will return(TRUE,FALSE,TRUE,FALSE,TRUE,TRUE)
    Double Negative converts to (1,0,1,0,1,1)
    Final result = 4

    You can also use this formula to get the same results
    {=SUM(IF(ISERROR(MATCH(Range1,Range2,0)),0,1))}

  3. #3
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: How does this SUMPRODUCT formula work?

    Thanks garfield! I didn't know you could use double negative that way. Very clever.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SUMPRODUCT vs. SUM: Trying to understand why SUM will not work in a formula
    By McStagger in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-09-2014, 03:22 AM
  2. [SOLVED] Why my SUMPRODUCT() formula does not work in Excel 2003?
    By billj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2013, 07:04 PM
  3. Does sumproduct formula work in Open office spreadsheet
    By CD01 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 05-30-2013, 01:00 PM
  4. SUMPRODUCT with MAX and MIN, MIN does not work
    By Masun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2013, 08:41 AM
  5. Replies: 1
    Last Post: 02-28-2012, 02:55 AM
  6. (SOLVED) Can't get sumproduct formula to work
    By friend11_6 in forum Excel General
    Replies: 7
    Last Post: 06-15-2009, 04:43 AM
  7. Sumproduct Formula Doesn't Work
    By winnie_shrub in forum Excel General
    Replies: 4
    Last Post: 05-15-2009, 10:40 AM

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