Results 1 to 5 of 5

logic behind sumproduct

Threaded View

  1. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: logic behind sumproduct

    I typed all of this out already, then Excelforum decided it wanted to lock up and delete everything, to teach me the virtue of patience.


    Anyways, here we go again.

    It is an array formula. It gives you the Summed product of two arrays, so So sumproduct(a1:a3,b1:b3) would do this:
    SUM(a1*b1,a2*b2,a3*b3)
    Or,


    In your example formula, it would do this

    {c2=1, c3=1, c4=1,......} all the way to c22. Then result would be like the following,
    {TRUE,TRUE,FALSE,TRUE,TRUE...}
    Then you put a double negative in, --, which converts it to a 1 or a 0 depending on TRUE or FALSE
    {1,1,0,1,1...}

    Then the other part,
    {e2>=d2, e3>=d3, e4>=d4...e22>=d22}
    it will also return true's and falses, lets say
    {1,0,1,0,1...}

    Now, we multiple them, which is the PRODUCT part

    {1*1,1*0,0*1,1*0,1*1...}
    which is
    {1,0,0,0,1...}

    Then we SUM those 0's and 1's to get the end result, which in this case is
    1+0+0+0+1 = 2

    Hope this helps!~



    Edit; technically those should be semicolons between the values and not commas, oh well.

    Semicolon notes new row, comma is new column

    so {0,1;2,3;4,5} would represent a table of

    0 1
    2 3
    4 5
    Last edited by Speshul; 09-16-2014 at 02:39 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sumproduct with OR Logic
    By daffodil11 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-17-2014, 09:27 PM
  2. [SOLVED] SUMPRODUCT. using AND-OR logic with text
    By FAL22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2013, 04:34 PM
  3. SUMPRODUCT with multiple logic and without duplicates
    By cberas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 03:53 PM
  4. formula logic (sumproduct,countif)
    By TROBFP in forum Excel General
    Replies: 1
    Last Post: 04-22-2007, 08:48 PM
  5. Replies: 3
    Last Post: 03-28-2006, 03:56 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