#1   Report Post  
Junior Member
 
Posts: 7
Default 3 criteria

My old formula worked fine for finding the number based on two criteria,
=SUMPRODUCT(-(J124:J1111=0),-(AV124:AV1111="yes"))

Now I want to add a third criteria,
=SUMPRODUCT(--(AV124:AV1111="yes"),--(E123:E1111"Half Off"),--(J124:J1111=0),J124:J1111)

But now I get a #VALUE error....any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default 3 criteria

--(E123:E1111"Half Off")

Unless those are typos:

That array isn't the same size as the others and you're missing the = sign.

Biff

"Mike B" wrote in message
...

My old formula worked fine for finding the number based on two
criteria,
=SUMPRODUCT(-(J124:J1111=0),-(AV124:AV1111="yes"))

Now I want to add a third criteria,
=SUMPRODUCT(--(AV124:AV1111="yes"),--(E123:E1111"Half
Off"),--(J124:J1111=0),J124:J1111)

But now I get a #VALUE error....any ideas?


--
Mike B



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default 3 criteria

First, all your ranges need to be the same size. Probably need to change
E123 to E124.

Second, since you're multiplying by the range J124:J1111, but only if
J124:J1111=0, you can replace the whole formula with

0

In article ,
Mike B wrote:

My old formula worked fine for finding the number based on two
criteria,
=SUMPRODUCT(-(J124:J1111=0),-(AV124:AV1111="yes"))

Now I want to add a third criteria,
=SUMPRODUCT(--(AV124:AV1111="yes"),--(E123:E1111"Half
Off"),--(J124:J1111=0),J124:J1111)

But now I get a #VALUE error....any ideas?

  #4   Report Post  
Junior Member
 
Posts: 7
Default

Sorry, couple really stupid errors in my original post. How do I add a third criteria to this formula:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"))

This just doesn't work:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"),-(V124:V1111="Half Off"))

Thanks



Quote:
Originally Posted by JE McGimpsey
First, all your ranges need to be the same size. Probably need to change
E123 to E124.

Second, since you're multiplying by the range J124:J1111, but only if
J124:J1111=0, you can replace the whole formula with

0

In article ,
Mike B
wrote:

My old formula worked fine for finding the number based on two
criteria,
=SUMPRODUCT(-(J124:J1111=0),-(AV124:AV1111="yes"))

Now I want to add a third criteria,
=SUMPRODUCT(--(AV124:AV1111="yes"),--(E123:E1111"Half
Off"),--(J124:J1111=0),J124:J1111)

But now I get a #VALUE error....any ideas?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default 3 criteria

Hard to tell without knowing what "just doesn't work" means.
Sytactically, it's fine, though if you're counting, you'll get a
negative number - add another negation to make it positive.



In article ,
Mike B wrote:

Sorry, couple really stupid errors in my original post. How do I add a
third criteria to this formula:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"))

This just doesn't work:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"),-(V124:V1111="Half
Off"))



  #6   Report Post  
Junior Member
 
Posts: 7
Default

Thanks for your help JE. I had some caffine, retyped my formula, added another negation, and it worked fine.

Thanks again
mike



Quote:
Originally Posted by JE McGimpsey
Hard to tell without knowing what "just doesn't work" means.
Sytactically, it's fine, though if you're counting, you'll get a
negative number - add another negation to make it positive.



In article ,
Mike B
wrote:

Sorry, couple really stupid errors in my original post. How do I add a
third criteria to this formula:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"))

This just doesn't work:
=SUMPRODUCT(-(J124:J1111=1),-(AV124:AV1111="yes"),-(V124:V1111="Half
Off"))
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning Results Based on Two Criteria [email protected] Excel Worksheet Functions 7 October 23rd 05 02:53 PM
Find largest alphanumeric value matching alpha criteria in databas Alison Excel Worksheet Functions 7 August 4th 05 06:59 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"