LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default SUMPRODUCT with criteria including OR function

Hi chaps,
Excel 2003
I'm using the following formula to sum the number of times that the #3
appears on the same Row in both Columns G3:G1002 & H3:H1002, where the value
in Column AJ3:AJ1002 is between 2 other distinct values (located in a
seperate table, cells I1320 & J1320).

=IF(SUMPRODUCT(($AJ$3:$AJ$1002=I1320)*($AJ$3:$AJ$ 1002<J1320)*($G$3:$G$1002=3)*($H$3:$H$1002=3))=0," ",SUMPRODUCT(($AJ$3:$AJ$1002=I1320)*($AJ$3:$AJ$10 02<J1320)*($G$3:$G$1002=3)*($H$3:$H$1002=3)))

All works fine, but now instead of the #3 I need to introduce an OR function
so that if either of (or both) the values in G3:G1002 & H3:H1002 exceed 3
(are 4 or greater), then it sums the number or times this occurs.

Need to stress that if either or both of the two values exceed 3, then it
sums the number of occurances.

Many thanks for looking, hope you can help.
Steve.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumproduct including previous years tleehh Excel Worksheet Functions 1 January 2nd 10 03:37 PM
sumproduct including empty cells Rene Excel Discussion (Misc queries) 3 January 17th 09 06:18 PM
Average with 2 criteria including month RS Excel Worksheet Functions 8 August 1st 07 09:46 PM
Multiple criteria countif/sumproduct function Cobbcouk Excel Worksheet Functions 7 July 25th 06 12:22 PM
Using Sumproduct Function To Add Multiple Criteria Ange Kappas Excel Worksheet Functions 1 January 23rd 06 11:29 AM


All times are GMT +1. The time now is 02:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"