Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default 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
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
Column picked randomly with probability relative to number of entr Neil Goldwasser Excel Worksheet Functions 4 May 30th 06 08:55 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
type information in one column and second coloumn will know respo Mstotler Excel Worksheet Functions 1 August 31st 05 05:37 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM


All times are GMT +1. The time now is 11:15 PM.

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"