Sum the values in a Column depending on values in two other col.

M

MarioMiranda

StudentID Sex Age CollectionAmount
A Male 11 21
B Male 11 22
C Female 8 23
D Female 12 24
E Female 9 25


Formula to find the sum of "CollectionAmount" for Male
Students of Age > 10
 
T

Tim Otero

Provided cells used are A1:D6, the formula would be:

=SUM((B2:B6="Male")*(C2:C6>10)*D2:D6)

entered as and array formula, using ctrl+shift+enter instead of just enter

tim
 
S

Stephen

Create another column and put in =if((c1>10),d1,0), then
take the sum of that column. There may be a way to do it
through one formula, but I'm not sure how.
 

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

Top