Sumif with 2 sets of criteria :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Sumif with 2 sets of criteria
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

JRCBoston
Board Regular


Joined: 19 Sep 2003
Posts: 10

Flag: Blank

Status: Offline

 Reply with quote  

Sumif with 2 sets of criteria

Hi-

The sumif function only sums using one set of criteria, and I want to use more than one set of criteria. Does anyone have any suggestions? For instance, I want to be able to sum column D, if column A is equal to Yes and column b is equal to Monday. Or something like that.

Thanks.

Jon

Post Fri Sep 19, 2003 8:11 pm 
 View user's profile Send private message

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 14083
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: Sumif with 2 sets of criteria

=SUMPRODUCT((Arange="Yes")*(Brange="Monday"),Drange)

For more multiconditional counting & summing, see:

http://www.mrexcel.com/board2/viewtopic.php?t=59063

Post Fri Sep 19, 2003 8:20 pm 
 View user's profile Send private message

Mark W.
MrExcel MVP


Joined: 11 Feb 2002
Posts: 7146
Location: Austin, Texas USA
Flag: Usa

Status: Offline

 Reply with quote  

Re: Sumif with 2 sets of criteria

If you haven't already done so... you ought to add-in and use the Conditional Sum Wizard. It provides a step-by-step guide for the construction of conditional array formulas such as...

{=SUM(IF(range1="Yes",IF(range2="Monday",range3)))}

Why write the formula when Excel will do it for you?

Note: Array formulas must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For

Post Fri Sep 19, 2003 8:25 pm 
 View user's profile Send private message

Pugster
Board Regular


Joined: 17 Nov 2003
Posts: 45
Location: What's it called?
Flag: Scotland

Status: Offline

 Reply with quote  

Re: Sumif with 2 sets of criteria

I am trying to use the Conditional Sum wizard but am experiencing problems. I have a named array which has all the days of the month across the top, names of all staff down the first column, which department they work in in the second column and their shift start time is entered into the body of the table.

I have been able to use the Conditional sum wizard to display how many staff we have in each department for each day for each different start time for the dates between 10/11 and 30/11 but when I follow the exact same procedure for anything out with these dates the error message reads that I have a randionized value which will have to be removed.

I can not find these figures based on randonized values. I have deleted all the data except the date at the top of the column and I still cant get it to work!!

Any tips?
_________________
I didnt get where I am today by quoting 70's sitcoms.

Post Mon Nov 17, 2003 1:11 pm 
 View user's profile Send private message

Pugster
Board Regular


Joined: 17 Nov 2003
Posts: 45
Location: What's it called?
Flag: Scotland

Status: Offline

 Reply with quote  

Re: Sumif with 2 sets of criteria

It must have had something to do with the way the dates were formatted. I have now fixed the problem by removing the dates, using the wizard and then hard typing the dates back in.
_________________
I didnt get where I am today by quoting 70's sitcoms.

Post Mon Nov 17, 2003 1:49 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.