Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
Here is a brief example of what I am trying to accomplish:
A B 1 Don 2 Jim w 3 Don w 4 Bob 5 Jim w I would like to count the number of times that Don's name is on the list, then the number of times Don has a "w" in the next column. The COUNTIF function works for the first one but how do I get the second amount? The results should be: Bob 1 Don 2 1 Jim 2 2 I thank any and all in advance for any help that can be given on this. Deborah |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
Assuming the source data is within A1:B20,
and names are listed in D1 down, viz: Bob Don Jim etc Put in say, F1, and copy down: =SUMPRODUCT(($A$1:$A$20=D1)*($B$1:$B$20="w")) Adapt the ranges to suit. Note that sumproduct doesn't accept entire col references, eg: A:A, B:B -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Deborah S." wrote: Here is a brief example of what I am trying to accomplish: A B 1 Don 2 Jim w 3 Don w 4 Bob 5 Jim w I would like to count the number of times that Don's name is on the list, then the number of times Don has a "w" in the next column. The COUNTIF function works for the first one but how do I get the second amount? The results should be: Bob 1 Don 2 1 Jim 2 2 I thank any and all in advance for any help that can be given on this. Deborah |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
Hi!
Try this: Names listed in D1:D3 - D1 = Bob D2 = Don D3 = Jim Formula in E1: =COUNTIF(A$1:A$5,D1) Formula in F1: =SUMPRODUCT(--(A$1:A$5=D1),--(B$1:B$5="w")) Select both E1 and F1 and copy down as needed. Biff "Deborah S." <Deborah wrote in message ... Here is a brief example of what I am trying to accomplish: A B 1 Don 2 Jim w 3 Don w 4 Bob 5 Jim w I would like to count the number of times that Don's name is on the list, then the number of times Don has a "w" in the next column. The COUNTIF function works for the first one but how do I get the second amount? The results should be: Bob 1 Don 2 1 Jim 2 2 I thank any and all in advance for any help that can be given on this. Deborah |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
Thanks so much, worked great.
"Biff" wrote: Hi! Try this: Names listed in D1:D3 - D1 = Bob D2 = Don D3 = Jim Formula in E1: =COUNTIF(A$1:A$5,D1) Formula in F1: =SUMPRODUCT(--(A$1:A$5=D1),--(B$1:B$5="w")) Select both E1 and F1 and copy down as needed. Biff "Deborah S." <Deborah wrote in message ... Here is a brief example of what I am trying to accomplish: A B 1 Don 2 Jim w 3 Don w 4 Bob 5 Jim w I would like to count the number of times that Don's name is on the list, then the number of times Don has a "w" in the next column. The COUNTIF function works for the first one but how do I get the second amount? The results should be: Bob 1 Don 2 1 Jim 2 2 I thank any and all in advance for any help that can be given on this. Deborah |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
You're welcome. Thanks for the feedback!
Biff "Deborah S." wrote in message ... Thanks so much, worked great. "Biff" wrote: Hi! Try this: Names listed in D1:D3 - D1 = Bob D2 = Don D3 = Jim Formula in E1: =COUNTIF(A$1:A$5,D1) Formula in F1: =SUMPRODUCT(--(A$1:A$5=D1),--(B$1:B$5="w")) Select both E1 and F1 and copy down as needed. Biff "Deborah S." <Deborah wrote in message ... Here is a brief example of what I am trying to accomplish: A B 1 Don 2 Jim w 3 Don w 4 Bob 5 Jim w I would like to count the number of times that Don's name is on the list, then the number of times Don has a "w" in the next column. The COUNTIF function works for the first one but how do I get the second amount? The results should be: Bob 1 Don 2 1 Jim 2 2 I thank any and all in advance for any help that can be given on this. Deborah |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
hmm .. wonder why my sumproduct version didn't work for the OP <g
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
For the same reason that my "Ticket Checker" sucks! <g
Biff "Max" wrote in message ... hmm .. wonder why my sumproduct version didn't work for the OP <g -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Information from one column then filtered(?) from another
ha..ha..hha!!
-via135 Max wrote: hmm .. wonder why my sumproduct version didn't work for the OP <g -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200609/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Column picked randomly with probability relative to number of entr | Excel Worksheet Functions | |||
creating a bar graph | Excel Discussion (Misc queries) | |||
type information in one column and second coloumn will know respo | Excel Worksheet Functions | |||
match and count words | Excel Worksheet Functions | |||
Lookup Table Dilemma | Excel Worksheet Functions |