#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default SUMIFS and OR

Hi,

Is there a way to use the OR function within the SUMIFS function, if
you only want to sum two criteria-values (not consecutive).

Cheers,

Harold

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default SUMIFS and OR

SumProduct perhaps???

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
It looks like this web page might be temporarily down. Not too sure...
--
HTH...

Jim Thomlinson


"mohavv" wrote:

Hi,

Is there a way to use the OR function within the SUMIFS function, if
you only want to sum two criteria-values (not consecutive).

Cheers,

Harold


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default SUMIFS and OR

Example:
AA BB CC DD EE
45 E 101 E 3
71 B 105 D 6
64 B 102 C 3
42 E 103 C 2
50 B 104 D 7
36 D 101 E 1
84 D 102 B 3
86 B 105 D 8
18 C 102 D 7
27 D 105 C 5
46 E 105 B 9
42 C 101 D 9
Regular ANDed SUMIFS and SUMPRODUCT formulas might be
=SUMIFS(AA,BB,"B",CC,105,DD,"D",EE,"5") =157
=SUMPRODUCT(AA*(BB="B")*(CC=105)*(DD="D")*(EE5)) =157
The same formulas with ORed criteria would be
=SUM(AA)-SUMIFS(AA,BB,"<B",CC,"<105",DD,"<D",EE,"<=5") =404
=SUMPRODUCT(AA*NOT(NOT(BB="B")*NOT(CC=105)*NOT(DD= "D")*NOT(EE5)))
=404

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default SUMIFS and OR

On Jan 30, 2:21*pm, Herbert Seidenberg
wrote:
Example:
AA * * *BB * * *CC * * *DD * * *EE
45 * * *E * * * 101 * * E * * * 3
71 * * *B * * * 105 * * D * * * 6
64 * * *B * * * 102 * * C * * * 3
42 * * *E * * * 103 * * C * * * 2
50 * * *B * * * 104 * * D * * * 7
36 * * *D * * * 101 * * E * * * 1
84 * * *D * * * 102 * * B * * * 3
86 * * *B * * * 105 * * D * * * 8
18 * * *C * * * 102 * * D * * * 7
27 * * *D * * * 105 * * C * * * 5
46 * * *E * * * 105 * * B * * * 9
42 * * *C * * * 101 * * D * * * 9
Regular ANDed SUMIFS and SUMPRODUCT formulas might be
=SUMIFS(AA,BB,"B",CC,105,DD,"D",EE,"5") * *=157
=SUMPRODUCT(AA*(BB="B")*(CC=105)*(DD="D")*(EE5)) *=157
The same formulas with ORed criteria would be
=SUM(AA)-SUMIFS(AA,BB,"<B",CC,"<105",DD,"<D",EE,"<=5") * =404
=SUMPRODUCT(AA*NOT(NOT(BB="B")*NOT(CC=105)*NOT(DD= "D")*NOT(EE5)))
=404


I meant Two values in the same column/area.
example (not working) =SUMIFS(aa,bb,"B",bb,"E")
=SUMIFS(aa,bb,OR("B","E"))

Cheers,

Harold


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default SUMIFS and OR

The same format applies.
Just OR the same column two (or more) times.
=SUM(AA)-SUMIFS(AA,BB,"<B",BB,"<E") =404
=SUMPRODUCT(AA*NOT(NOT(BB="B")*NOT(BB="E"))) =404


Reply
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
SUMIFS() error? fgrose Excel Worksheet Functions 6 October 29th 09 05:05 PM
Can SUMIFS use the OR function? Ted M H Excel Worksheet Functions 7 January 2nd 08 11:18 PM
SUMIFS Mark Excel Discussion (Misc queries) 3 November 28th 07 12:09 PM
SUMIFS and OR M.S. Westerbeek Excel Worksheet Functions 6 August 23rd 07 07:24 PM
SumIfs timson Excel Discussion (Misc queries) 3 January 26th 07 07:46 PM


All times are GMT +1. The time now is 04:32 AM.

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"