Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default SUMIFS with an OR criteria

I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in column D
would be added for all cases where Column M matches Summary!A4, and Column F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIFS with an OR criteria

If Travel-Non-Dispatch and Travel are the only variations that contain the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in column
D
would be added for all cases where Column M matches Summary!A4, and Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default SUMIFS with an OR criteria


Of course. Bad example. I am looking to change the formula so that its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that contain the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in column
D
would be added for all cases where Column M matches Summary!A4, and Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIFS with an OR criteria

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in
column
D
would be added for all cases where Column M matches Summary!A4, and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default SUMIFS with an OR criteria

I was trying to do the second formula. Thanks!

"T. Valko" wrote:

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in
column
D
would be added for all cases where Column M matches Summary!A4, and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,










  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIFS with an OR criteria

Of those 2 formulas, the first is slightly more efficient (even though it's
longer and looks more complicated).

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I was trying to do the second formula. Thanks!

"T. Valko" wrote:

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that
its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that
contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in
column
D
would be added for all cases where Column M matches Summary!A4, and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,










  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default SUMIFS with an OR criteria

I am creating varitions of your formula. What does this portion "(--" of the
formula do?

Thanks


"T. Valko" wrote:

Of those 2 formulas, the first is slightly more efficient (even though it's
longer and looks more complicated).

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I was trying to do the second formula. Thanks!

"T. Valko" wrote:

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that
its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that
contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in
column
D
would be added for all cases where Column M matches Summary!A4, and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,











  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default SUMIFS with an OR criteria


This is the formula I made...

=SUMPRODUCT(('Call Activity'!D:D=$C$10)*('Call
Activity'!B:B=$D$13)*(ISNUMBER(MATCH('Call Activity'!O:O,{0,1},0))))


"T. Valko" wrote:

Of those 2 formulas, the first is slightly more efficient (even though it's
longer and looks more complicated).

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I was trying to do the second formula. Thanks!

"T. Valko" wrote:

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that
its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that
contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value in
column
D
would be added for all cases where Column M matches Summary!A4, and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,











  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIFS with an OR criteria

See this:

http://xldynamic.com/source/xld.SUMPRODUCT.html

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I am creating varitions of your formula. What does this portion "(--" of
the
formula do?

Thanks


"T. Valko" wrote:

Of those 2 formulas, the first is slightly more efficient (even though
it's
longer and looks more complicated).

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I was trying to do the second formula. Thanks!

"T. Valko" wrote:

Try something like this:

=SUMPRODUCT(--(Rng1="A"),--(ISNUMBER(MATCH(Rng2,{"B","C"},0))),Sum_Rng)

Or:

=SUMPRODUCT(--(Rng1="A"),(Rng2="B")+(Rng2="C"),Sum_Rng)

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...

Of course. Bad example. I am looking to change the formula so that
its A
and (B or C).


"T. Valko" wrote:

If Travel-Non-Dispatch and Travel are the only variations that
contain
the
string Travel, then:

=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel*")

--
Biff
Microsoft Excel MVP


"Go Bucks!!!" wrote in message
...
I currently have the formula:
=SUMIFS('Labor Reclasses'!$D$6:$D$8000,'Labor
Reclasses'!$M$6:$M$8000,Summary!$A4,'Labor
Reclasses'!$F$6:$F$8000,"Travel-Non-Dispatch",'Labor
Reclasses'!$F$6:$F$8000,"Travel"))

I want to change the last two criteria to an OR. Thus the value
in
column
D
would be added for all cases where Column M matches Summary!A4,
and
Column
F
is either "Travel-Non-Dispatch" or "Travel"

Thanks,













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
using sumifs with multiple criteria? Celia Excel Discussion (Misc queries) 3 April 8th 09 02:14 AM
sumifs criteria Ebisu-A Excel Worksheet Functions 3 August 25th 08 08:24 PM
SUMIFS with 3 criteria instead of just 2 Hopper Excel Worksheet Functions 1 August 20th 08 07:59 PM
using sumifs to sum based on month, and criteria Jonas Excel Worksheet Functions 13 April 29th 08 01:12 PM
Using wildcards in criteria for sumifs functions PaulJK Excel Discussion (Misc queries) 2 March 11th 08 02:00 PM


All times are GMT +1. The time now is 05:14 AM.

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

About Us

"It's about Microsoft Excel"