+ Reply to Thread
Results 1 to 4 of 4

Thread: Sumproduct with OR-function

  1. #1
    Valued Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    315

    Sumproduct with OR-function

    Hello all,

    I tried the follwoing but can't get it to work properly.
    Can Sumproduct and OR-function be used together?

    =IF($A$6="","",SUMPRODUCT((rep!$H$2:$H$500<$A$6)*SUMPRODUCT((OR(rep!$R$2:$R$500>$A$6,rep!$R$2:$R$500=""))*(rep!$M$2:$M$500=B24))))
    Last edited by Jonathan78; 02-13-2012 at 04:44 AM.

  2. #2
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    685

    Re: Sumproduct with OR-function

    You can't use OR like that, but you can use + in the same way that * is interpreted as AND in these formulae with arrays. I'm not sure what you are trying to do, but maybe this:

    =IF($A$6="","",SUMPRODUCT((rep!$H$2:$H$500<$A$6)*((rep!$R$2:$R$500>$A$6)+(rep!$R$2:$R$500=""))*(rep! $M$2:$M$500=B24)))

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    315

    Re: Sumproduct with OR-function

    Thanks Pete!
    It worked.

  4. #4
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    685

    Re: Sumproduct with OR-function

    Oh well, that was a good guess then !! Thanks for feeding back.

    Pete

+ 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