Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default Can SUMIFS use the OR function?

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Can SUMIFS use the OR function?

I believe this will give you what you want. It may be a little dense, just
read through, slowly and thoroughly, and try a few examples on your own
scenario.

Regards,
Ryan--

--
RyGuy


"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 97
Default Can SUMIFS use the OR function?

Hi,

You will be better off with the Sumproduct() function ...

HTH
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Can SUMIFS use the OR function?

=SUM(SUMIFS(Unit_Sold,Product,{"A","B"},Sales_mana ger,"Smith"))


"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default Can SUMIFS use the OR function?

Hi Ryan,

I may be a little dense, but I don't see anything in your reply that I can
read through other than my own post...Did you insert something here that I
can't see?

Thanks for the reply.

"ryguy7272" wrote:

I believe this will give you what you want. It may be a little dense, just
read through, slowly and thoroughly, and try a few examples on your own
scenario.

Regards,
Ryan--

--
RyGuy


"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Can SUMIFS use the OR function?

Yeah, sorry, forgot to paste the link in before hitting the 'Post' button:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Regards,
Ryan--


--
RyGuy


"Teethless mama" wrote:

=SUM(SUMIFS(Unit_Sold,Product,{"A","B"},Sales_mana ger,"Smith"))


"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default Can SUMIFS use the OR function?

Hi Everyone,

Thanks for taking the time to reply to my post. I'm going to guess that
since all three of you answered by pointing me toward SUMPRODUCT rather than
using OR with SUMIFS that in fact one cannot use OR with SUMIFS.

Thanks.

"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but cant get it to work.
I know there are other ways to solve this problem, but Im trying
specifically to understand what SUMIFS can and cant do.
Thanks.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Can SUMIFS use the OR function?

See teethless' post.

Technically, that formula is not calculating an "OR" condition. It's doing 2
independent SUMIFS and then adding those 2 results together. So, it's a
semantic "OR" condition!

It's similar to this:

A1:A5 = x, x, y, x, y

=SUM(COUNTIF(A1:A5,{"x","y"}))

In essence, this is what is happening:

=SUM(COUNTIF(A1:A5,"x"),COUNTIF(A1:A5,"y"))

=SUM({3,2})

--
Biff
Microsoft Excel MVP


"Ted M H" wrote in message
...
Hi Everyone,

Thanks for taking the time to reply to my post. I'm going to guess that
since all three of you answered by pointing me toward SUMPRODUCT rather
than
using OR with SUMIFS that in fact one cannot use OR with SUMIFS.

Thanks.

"Ted M H" wrote:

I have a table with columns Product, Units Sold, Sales manager.
Products values are A, B, C, D, E, F
Units sold is a simple integer
Sales manager values are Smith, Jones, Doe
Can I use SUMIFS to return the total units sold if manager name is Smith
AND
Product is A, OR manager name is Smith and Product is B.

I tried to use OR in the second criteria argument, but can't get it to
work.
I know there are other ways to solve this problem, but I'm trying
specifically to understand what SUMIFS can and can't do.
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
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 error NicoleC Excel Discussion (Misc queries) 8 May 7th 07 05:19 AM
SumIfs timson Excel Discussion (Misc queries) 3 January 26th 07 07:46 PM
[Excel 2007 Beta2] Function SUMIFS Franz Verga Excel Worksheet Functions 3 June 20th 06 11:53 PM


All times are GMT +1. The time now is 02:50 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"