sum by criteria

C

chrisnsmith

In the following example I need to sum column D for criteria in column B, and
sum column E for criteria in column B.

A B C D
E
ACCT COMM STRIKE LONG SHORT
1 cf wz 2
2 df wz 2
3 ef wc
2
4 fk wh 4
5 ro wc 5
6 gl wc
3
7 lu wh 4
8 qw wh
3
9 gd wz
5
10 we wc 7

Example: For wc in column B and a number in column D, I need to sum for wc.
For wc in column B and a number in column E, I need to sum
for wc.
And so on and so on, for matching criteria in column B.
 
B

Bernard Liengme

Have a look at SUMIF in Help for single criteria (criterion, if you wish)
SUMPRODUCT can be used for multiple criteria, as can SUMIFS in Excel 2007
best wishes
 
C

chrisnsmith

Thanks, that was pretty easy.

Bernard Liengme said:
Have a look at SUMIF in Help for single criteria (criterion, if you wish)
SUMPRODUCT can be used for multiple criteria, as can SUMIFS in Excel 2007
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DSUM Basics 1
Calculate sum of values based on a ref value, how? 4
Worksheet - Copy rows 1
Sum a range based on a column 2
SUM - IF - AND 7
Transpose, but how? 0
Sum Total 2
Sum / Lookup 9

Top