Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Sums Using Multiple Criteria Error 1

Status
Not open for further replies.

aprunkard

Technical User
Oct 29, 2004
52
0
0
US
I am trying to create a formula that sums the Revenue Column (Range Named "Revenue"), only if the Named Ranges Client="CR" AND Campaign="PCR". I have tried:

{=SUM((Client="CR")*(Campaign="PCR")*Revenue)}
I get a #NUM! error

I have tried not using an array and I get a result but it's not even close. It's so far off that I can't even figure out where it's getting that result from.

What am I missing?
 
Try:

=SUMPRODUCT(Revenue*(Client="CR")*(Campain="PCR"))
 
I get the #NUM! error, even when I try the array.
Would it make a different if my named ranges are on a different sheet from where I am trying to put the formula?
 
I have setup sheet1 with 3 columns: Revenue, Client and Campain.

I have defined the name ranges as following:

Campain=Sheet1!$C$2:$C$13
Client=Sheet1!$B$2:$B$13
Revenue=Sheet1!$A$2:$A$13

Notice that they all contain the same number of rows.

Then I have placed the formula on Sheet2:

=SUMPRODUCT(Revenue*(Client="CR")*(Campain="PCR"))

It works because the ranges contain the Worksheet information.

I'm using Excel 2003.

If this doesn't work for you, please check your ranges to be sure you are using the correct names and that the ranges contain the worksheet.

Hope this helps.
 
Hi aprunkard,

what are the precise definitions of your names please? ( If they are entire columns, make them shorter by one row .. e.g. $A$1:$A$65535 instead of $A:$A )

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
aprunkard, suggest you give Glenn a star because he resolved the issue for you, by identifying something that others did not figure out.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top