Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default add two criteria that should not be met to sumproduct

Hi everyone,

I'm using the following

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1),--(Data!$K$2:$K$10000<"N2"))

Which works beautifully but I also need to say that if k2:k10000 does not
equal N1 it shouldn't be counted as well.

Grateful for any help
--
Deirdre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default add two criteria that should not be met to sumproduct

Have you tried this:

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1) ,--
(Data!$K$2:$K$10000<"N2"),--(Data!$K$*2:$K$10000<"N1"))

?

Hope this helps.

Pete

On Jan 30, 3:19*pm, Diddy wrote:
Hi everyone,

I'm using the following

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1),--(Data!$K$*2:$K$10000<"N2"))

Which works beautifully but I also need to say that if k2:k10000 does not
equal N1 it shouldn't be counted as well.

Grateful for any help
--
Deirdre


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default add two criteria that should not be met to sumproduct

Hi Pete,

sorry for the delay in replying - I've been up to my eyes with something else!

I'm getting strange results with that formula. Some are higher than the
expected and some lower.

Any suggestions

Many thanks
--
Deirdre


"Pete_UK" wrote:

Have you tried this:

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1) ,--
(Data!$K$2:$K$10000<"N2"),--(Data!$K$Â*2:$K$10000<"N1"))

?

Hope this helps.

Pete

On Jan 30, 3:19 pm, Diddy wrote:
Hi everyone,

I'm using the following

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1),--(Data!$K$Â*2:$K$10000<"N2"))

Which works beautifully but I also need to say that if k2:k10000 does not
equal N1 it shouldn't be counted as well.

Grateful for any help
--
Deirdre



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default add two criteria that should not be met to sumproduct

Thank you Pete,

It does work, just my brain that doesn't! :-)
--
Diddy


"Pete_UK" wrote:

Have you tried this:

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1) ,--
(Data!$K$2:$K$10000<"N2"),--(Data!$K$Â*2:$K$10000<"N1"))

?

Hope this helps.

Pete

On Jan 30, 3:19 pm, Diddy wrote:
Hi everyone,

I'm using the following

=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1),--(Data!$K$Â*2:$K$10000<"N2"))

Which works beautifully but I also need to say that if k2:k10000 does not
equal N1 it shouldn't be counted as well.

Grateful for any help
--
Deirdre



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default add two criteria that should not be met to sumproduct

Well, I'm glad to hear that, Deirdre, although I had forgotten about
this particular post.

Pete

On Mar 3, 11:24*am, Diddy wrote:
Thank you Pete,

It does work, just my brain that doesn't! :-)
--
Diddy



"Pete_UK" wrote:
Have you tried this:


=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1) ,--
(Data!$K$2:$K$10000<"N2"),--(Data!$K$*2:$K$10000<"N1"))


?


Hope this helps.


Pete


On Jan 30, 3:19 pm, Diddy wrote:
Hi everyone,


I'm using the following


=SUMPRODUCT(--(Data!$C$2:$C$10000=$A6),--(Data!$S$2:$S$10000=1),--(Data!$K$**2:$K$10000<"N2"))


Which works beautifully but I also need to say that if k2:k10000 does not
equal N1 it shouldn't be counted as well.


Grateful for any help
--
Deirdre- Hide quoted text -


- Show quoted text -


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
Sumproduct with 2 criteria. Amber Excel Worksheet Functions 4 January 23rd 08 10:44 PM
sumproduct and IF criteria?? ferde Excel Discussion (Misc queries) 5 March 24th 07 06:11 PM
SUMPRODUCT - 2 Criteria Sam via OfficeKB.com Excel Worksheet Functions 23 February 10th 07 01:52 AM
Add a criteria to sumproduct JR Excel Worksheet Functions 1 March 16th 06 04:27 PM
SUMPRODUCT But With <> Criteria Joe Gieder Excel Worksheet Functions 2 December 20th 04 10:35 PM


All times are GMT +1. The time now is 08:45 AM.

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

About Us

"It's about Microsoft Excel"