Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

Sumproduct syntax when using AND, OR

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adimar - 06 Feb 2008 17:45 GMT
I have a list of trouble tickets with ticket#, open and close dates recorded
like this:

A                B                    C                  
1234    05/01/07           06/15/07
4567         04/01/07           07/15/07      
4321         05/29/07          

Timeframe is recorded like this:
D1=06/01/07
D2=06/30/07

I am trying to write the condition below as a SUMPRODUCT.

Condition: (open<D1) && ((close=””) || ((close>D2) && ((close-open) > 30)))

Formula: =SUMPRODUCT((B1:B3<D1) AND ((C1:C3=””) OR ((C1:C3>D2) AND
((C1:C3-B1:B3>30)))

What are the formula notations for AND and OR?

Thank you.
Bernie Deitrick - 06 Feb 2008 19:03 GMT
Multiplication is logical AND, addition is logical OR. Just watch your parens to group things
properly.

=SUMPRODUCT(((B1:B3<D1)*(C1:C3=""))+((C1:C3>D2)*(C1:C3-B1:B3>30)))

HTH,
Bernie
MS Excel MVP

>I have a list of trouble tickets with ticket#, open and close dates recorded
> like this:
[quoted text clipped - 18 lines]
>
> Thank you.
Herbert Seidenberg - 06 Feb 2008 20:48 GMT
addition is logical OR ??
http://www.freefilehosting.net/download/3bhi3
Herbert Seidenberg - 06 Feb 2008 22:04 GMT
Made a typo in the formulas.
Both methods agree now.
http://www.freefilehosting.net/download/3bhj0
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.