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 Adding a criteria to sumproduct

Hi everyone,

I'm using the following sumproduct formula

=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1

I would like to add a further criteria so that it will only count W, N and D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2.

As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???

Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't count
it.

Cheers
--
Deirdre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Adding a criteria to sumproduct

Try this:

=SUMPRODUCT(((NoPass="W")+(NoPass="N")+(NoPass="D" ))*
(Matchup="Matched"))

The * can be read as AND and the + as OR.

Hope this helps.

Pete

On Jan 15, 12:23*pm, Diddy wrote:
Hi everyone,

I'm using the following sumproduct formula

=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1

I would like to add a further criteria so that it will only count W, N and D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2.

As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???

Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't count
it.

Cheers
--
Deirdre


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Adding a criteria to sumproduct

Your current formula doesn't work, the call cannot be W, N and D.

=SUMPRODUCT((NoPass={"W","N","D"})*(Matchup="Marke d"))

--
__________________________________
HTH

Bob

"Diddy" wrote in message
...
Hi everyone,

I'm using the following sumproduct formula

=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is
a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1

I would like to add a further criteria so that it will only count W, N and
D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2.

As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???

Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't
count
it.

Cheers
--
Deirdre



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Adding a criteria to sumproduct

Thanks Pete,

I knew I wasn't getting it!!!

Thanks for the explanation of * and +.

Thanks again
--
Deirdre


"Pete_UK" wrote:

Try this:

=SUMPRODUCT(((NoPass="W")+(NoPass="N")+(NoPass="D" ))*
(Matchup="Matched"))

The * can be read as AND and the + as OR.

Hope this helps.

Pete

On Jan 15, 12:23 pm, Diddy wrote:
Hi everyone,

I'm using the following sumproduct formula

=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1

I would like to add a further criteria so that it will only count W, N and D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2.

As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???

Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't count
it.

Cheers
--
Deirdre



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Adding a criteria to sumproduct

Thanks Bob,

Great solution!

As I was posting the question I did wonder if sumproduct was even what I
needed, but I shouldn't have worried.

Cheers and thanks again
--
Deirdre


"Bob Phillips" wrote:

Your current formula doesn't work, the call cannot be W, N and D.

=SUMPRODUCT((NoPass={"W","N","D"})*(Matchup="Marke d"))

--
__________________________________
HTH

Bob

"Diddy" wrote in message
...
Hi everyone,

I'm using the following sumproduct formula

=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is
a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1

I would like to add a further criteria so that it will only count W, N and
D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2.

As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???

Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't
count
it.

Cheers
--
Deirdre






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Adding a criteria to sumproduct

You're welcome, Deirdre - thanks for feeding back.

Pete

On Jan 18, 11:03*pm, Diddy wrote:
Thanks Pete,

I knew I wasn't getting it!!!

Thanks for the explanation of * and +.

Thanks again
--
Deirdre



"Pete_UK" wrote:
Try this:


=SUMPRODUCT(((NoPass="W")+(NoPass="N")+(NoPass="D" ))*
(Matchup="Matched"))


The * can be read as AND and the + as OR.


Hope this helps.


Pete


On Jan 15, 12:23 pm, Diddy wrote:
Hi everyone,


I'm using the following sumproduct formula


=SUMPRODUCT(--(NoPass="W"),--(NoPass="N"),--(NoPass="D")) where NoPass is a
named dynamic range in Column C in Sheet 2. Formula is in Sheet 1


I would like to add a further criteria so that it will only count W, N and D
if corresponding cell in Range Matchup = "Matched" Column F Sheet 2..


As I'm typing this I'm wondering if it's possible and If I'm way off mark
here trying to do this with this formula ???


Basically what I would like to happen is if there is a W,D or N in say C2
and F2 =Matched then count it, if F2 does not equal matched then don't count
it.


Cheers
--
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
Please help with Sumproduct, adding additional criteria Gina[_2_] Excel Worksheet Functions 5 October 1st 08 02:23 PM
Sumproduct with 2 criteria. Amber Excel Worksheet Functions 4 January 23rd 08 10:44 PM
SUMPRODUCT w/ 3 criteria jane Excel Worksheet Functions 3 November 9th 07 11:26 PM
Sumproduct 4 criteria Alok Excel Worksheet Functions 0 November 30th 06 12:47 AM
Sumproduct with 2 criteria TMF in MN Excel Worksheet Functions 3 February 27th 06 07:16 PM


All times are GMT +1. The time now is 07: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"