Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default Sumproduct - meet multiple criteria from a list

i have data that looks like this in column A1:D10 and a list in Z1:Z4 and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list, return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or B,
scan column C and find a match in z:1:4 list, then sum the units. but don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumproduct - meet multiple criteria from a list

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in Z1:Z4 and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list, return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or B,
scan column C and find a match in z:1:4 list, then sum the units. but don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default Sumproduct - meet multiple criteria from a list

2nd part worked beautifully, thank you Teethless mama.
Unfortunately i mis-asked my first queston

yes, your formula answeres Blue heart but i meant to ask

i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches ANY value in z1:z4 list, return
the number of units.


so i should have asked blue heart, blue dot, blue square, blue stripe = 55

am i making sense?
i'm going to google isnumber & match... so i can better understand why your
2nd formula worked...

"Teethless mama" wrote:

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in Z1:Z4 and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list, return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or B,
scan column C and find a match in z:1:4 list, then sum the units. but don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct - meet multiple criteria from a list

so i should have asked blue heart, blue dot,
blue square, blue stripe = 55


Try this:

F2 = Blue

=SUMPRODUCT(SIGN((A2:A10=F2)+(B2:B10=F2)),--(ISNUMBER(MATCH(C2:C10,Z1:Z4,0))),D2:D10)


--
Biff
Microsoft Excel MVP


"Tami" wrote in message
...
2nd part worked beautifully, thank you Teethless mama.
Unfortunately i mis-asked my first queston

yes, your formula answeres Blue heart but i meant to ask

i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches ANY value in z1:z4 list,
return
the number of units.


so i should have asked blue heart, blue dot, blue square, blue stripe = 55

am i making sense?
i'm going to google isnumber & match... so i can better understand why
your
2nd formula worked...

"Teethless mama" wrote:

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in Z1:Z4
and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if
EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list,
return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or
B,
scan column C and find a match in z:1:4 list, then sum the units. but
don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default Sumproduct - meet multiple criteria from a list

yep, this worked perfectly for my sample data below
but, when i put it in my model, it doesn't work. I do have some blank lines
in my real data (the a:d part), possibly a word in column D, but definitely
no n/a's or ref's.


"T. Valko" wrote:

so i should have asked blue heart, blue dot,
blue square, blue stripe = 55


Try this:

F2 = Blue

=SUMPRODUCT(SIGN((A2:A10=F2)+(B2:B10=F2)),--(ISNUMBER(MATCH(C2:C10,Z1:Z4,0))),D2:D10)


--
Biff
Microsoft Excel MVP


"Tami" wrote in message
...
2nd part worked beautifully, thank you Teethless mama.
Unfortunately i mis-asked my first queston

yes, your formula answeres Blue heart but i meant to ask

i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches ANY value in z1:z4 list,
return
the number of units.


so i should have asked blue heart, blue dot, blue square, blue stripe = 55

am i making sense?
i'm going to google isnumber & match... so i can better understand why
your
2nd formula worked...

"Teethless mama" wrote:

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in Z1:Z4
and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if
EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list,
return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or
B,
scan column C and find a match in z:1:4 list, then sum the units. but
don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default Sumproduct - meet multiple criteria from a list

nevermind t.valko! it worked!....i changed the range to a small range with
no wierd cells/blanks etc and it worked, then i slowly increased the range
trying to identify what cell was wacking it out and it never did....so it
worked.

final question related to this schedule...
what if i wanted to Count the occurences...like this table

for example

ROW Colum Q Colum R Colum S

1 blue red
2 heart 3 2
3 dot 1 2
4 square 0 0
5 stripe 0 0


"T. Valko" wrote:

so i should have asked blue heart, blue dot,
blue square, blue stripe = 55


Try this:

F2 = Blue

=SUMPRODUCT(SIGN((A2:A10=F2)+(B2:B10=F2)),--(ISNUMBER(MATCH(C2:C10,Z1:Z4,0))),D2:D10)


--
Biff
Microsoft Excel MVP


"Tami" wrote in message
...
2nd part worked beautifully, thank you Teethless mama.
Unfortunately i mis-asked my first queston

yes, your formula answeres Blue heart but i meant to ask

i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches ANY value in z1:z4 list,
return
the number of units.


so i should have asked blue heart, blue dot, blue square, blue stripe = 55

am i making sense?
i'm going to google isnumber & match... so i can better understand why
your
2nd formula worked...

"Teethless mama" wrote:

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in Z1:Z4
and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if
EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list,
return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A or
B,
scan column C and find a match in z:1:4 list, then sum the units. but
don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct - meet multiple criteria from a list

what if i wanted to Count the occurences...like this table
1 blue red
2 heart 3 2
3 dot 1 2
4 square 0 0
5 stripe 0 0


What exactly do you want to count?

--
Biff
Microsoft Excel MVP


"Tami" wrote in message
...
nevermind t.valko! it worked!....i changed the range to a small range
with
no wierd cells/blanks etc and it worked, then i slowly increased the range
trying to identify what cell was wacking it out and it never did....so it
worked.

final question related to this schedule...
what if i wanted to Count the occurences...like this table

for example

ROW Colum Q Colum R Colum S

1 blue red
2 heart 3 2
3 dot 1 2
4 square 0 0
5 stripe 0 0


"T. Valko" wrote:

so i should have asked blue heart, blue dot,
blue square, blue stripe = 55


Try this:

F2 = Blue

=SUMPRODUCT(SIGN((A2:A10=F2)+(B2:B10=F2)),--(ISNUMBER(MATCH(C2:C10,Z1:Z4,0))),D2:D10)


--
Biff
Microsoft Excel MVP


"Tami" wrote in message
...
2nd part worked beautifully, thank you Teethless mama.
Unfortunately i mis-asked my first queston

yes, your formula answeres Blue heart but i meant to ask

i need a sumproduct formula that scans column A and B and if EITHERr
one has the word "blue" AND column C matches ANY value in z1:z4
list,
return
the number of units.

so i should have asked blue heart, blue dot, blue square, blue stripe =
55

am i making sense?
i'm going to google isnumber & match... so i can better understand why
your
2nd formula worked...

"Teethless mama" wrote:

Answere first part:

=SUMPRODUCT(((A2:A10="Blue")+(B2:B10="Blue")0)*(C 2:C10=Z1),D2:D10)

Answere second part:

=SUMPRODUCT(((ISNUMBER(MATCH(A2:A10,Y1:Y2,0)))+(IS NUMBER(MATCH(B2:B10,Y1:Y2,0)))0)*(ISNUMBER(MATCH( C2:C10,Z1:Z4,0))),D2:D10)


"Tami" wrote:

i have data that looks like this in column A1:D10 and a list in
Z1:Z4
and
Y1:y2

A B C D
1 color 1 color 2 theme units
2 Blue red heart 10
3 Blue none none 12
4 blue pink heart 18
5 Pink none none 11
6 Pink none heart 16
7 pink blue dot 15
8 red blue heart 12
9 red pink dot 10
10 red none dot 5


Z
1 heart
2 dot
3 square
4 stripe


y
1 blue
2 red


My question has two parts:

first, i need a sumproduct formula that scans column A and B and if
EITHERr
one has the word "blue" AND column C matches a value in z1:z4 list,
return
the number of units.

So for BLue/heart the formula would return 40 units.

2nd part.

the formula will look at list in Y1:y2, go find a match in columns A
or
B,
scan column C and find a match in z:1:4 list, then sum the units.
but
don't
double count if Blue is in both A and B.
so the answer would be 70


hope that makes sense and hope someone can help.
thx much
tami






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
vlookup and multiple rowns that meet criteria Jason Excel Discussion (Misc queries) 3 August 1st 09 12:58 PM
Counting rows that meet multiple criteria sabow71 Excel Worksheet Functions 5 April 23rd 09 04:50 PM
Counting rows that meet multiple criteria sabow71 Excel Worksheet Functions 0 April 22nd 09 09:20 PM
Count the number of values in a list that meet certain criteria Fudgy Excel Worksheet Functions 1 May 5th 08 09:23 PM
Auto-generating a list of records that meet a pattern criteria Jeff Gerke Excel Discussion (Misc queries) 0 March 23rd 06 11:18 PM


All times are GMT +1. The time now is 11:13 AM.

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"