Solved

Excel 2000 - SUMIF using

Posted on 2011-03-06
7
387 Views
Last Modified: 2012-05-11
Dear Experts,

I have a SUMIF function below which works fine, it summarizes the I column values from Sheet2, where in column D are "Car1" categories

=SUMIF(Sheet2!D:D;"Car1";Sheet2!I:I)

Could you advise is it possible to have the condition more complex, so SUMIF the Sheet2 I column values, where column D has "Car1" AND where column E has "Red"?

Briefly so do a SUMIF where D is "Car1" AND where E is "Red"

thanks,
0
Comment
Question by:csehz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 45

Expert Comment

by:patrickab
ID: 35045981
Try:

=SUMPRODUCT((Sheet2!D1:D65535="Car1", (Sheet2!E1:E65535="Red";Sheet2!I1:I65535)
0
 
LVL 45

Accepted Solution

by:
patrickab earned 500 total points
ID: 35045985
Oops - should have been, try

=SUMPRODUCT((Sheet2!D1:D65535="Car1")*(Sheet2!E1:E65535="Red")*Sheet2!I1:I65535)
0
 
LVL 1

Author Comment

by:csehz
ID: 35046024
Patrickab thanks, I have tried but somehow the formula

=SUMPRODUCT((Sheet2!D1:D65535="Car1");(Sheet2!E1:E65535="Red");Sheet2!I1:I65535)

gives 0 for me.

Could you maybe have a short look in the attached example file, I have tried it in cell B1.

thanks,
SumproductExample.xls
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 35046032
Not for points:

You missed a bit of Patricks formula ...

=SUMPRODUCT((Sheet2!D1:D65535="Car1")*(Sheet2!E1:E65535="Red");Sheet2!I1:I65535)

The first ";" should be a "*"

Chris
0
 
LVL 1

Author Comment

by:csehz
ID: 35046057
Chris thanks it works, at my computer the "," used to be ";" so I am never sure so just trying.

Thanks very much to both of you
0
 
LVL 45

Expert Comment

by:patrickab
ID: 35046098
csehz,

Check out the attached file. It's working OK in there!

Patrick
csehz-01.xls
0
 
LVL 45

Expert Comment

by:patrickab
ID: 35046163
csehz - Thanks for the grade - Patrick
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question