If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Conditional sum with AND

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-08, 04:50
michaeldavid michaeldavid is offline
Registered User
 
Join Date: Dec 2004
Posts: 35
Conditional sum with AND

Hi,

Does anyone know if you can do a conditional sum with an AND in the criteria.

Such that I get a sum if

ColumnA = This
AND
ColumnB = That

Or is there another method for doing this sum
Reply With Quote
  #2 (permalink)  
Old 11-05-08, 08:35
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

It's likley you can use the SumProduct function, but would need a little more info to produce an example.

MTB
Reply With Quote
  #3 (permalink)  
Old 11-10-08, 09:50
pierrevbaexcel pierrevbaexcel is offline
Registered User
 
Join Date: Dec 2003
Location: Ottawa, Canada
Posts: 72
Hi

Indeed SUMPRODUCT is like SUMIF on steroids.

In Excel 2007 Microsoft has created 3 new functions SUMIFS, COUNTIFS and AVERAGEIFS that can do a lot of what SUMPRODUCT can do but not everything.

During a recent visit to their campus in Redmond I showed them what I do with SUMPRODUCT and they were flabergasted. Useless to say that the creators of the new functionsdidn't become my friends.

SUMPRODUCT is at the center of my practiceas consultant and mentor. SUMPRODUCT empowers regular users and reduces substantially the programming needs.

If 5% of Excel users knew about SUMPRODUCT it would change the world of reporting and a lot of small businesses would not need to buy expensive, complex and limited reporting programs.

See an introduction on my website.
__________________
A piece of data is like a brick
If you don't build anything with it
It is just a brick
www.excel-examples.com
Reply With Quote
  #4 (permalink)  
Old 11-11-08, 09:15
michaeldavid michaeldavid is offline
Registered User
 
Join Date: Dec 2004
Posts: 35
Got it working

Thanks for the replies.

Got it working with DSUM (with some column labels), however it looks as though SUMPRODUCT would also have worked. I will bear SUMPRODUCT in mind for the future.

Many thanks
Mike
Reply With Quote
  #5 (permalink)  
Old 11-11-08, 09:35
pierrevbaexcel pierrevbaexcel is offline
Registered User
 
Join Date: Dec 2003
Location: Ottawa, Canada
Posts: 72
Micheal

See my new thread and download my file. It will change your life (as data analyst).
__________________
A piece of data is like a brick
If you don't build anything with it
It is just a brick
www.excel-examples.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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