Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Identify number of items with characterisitics from two columns

I have two columns, one with dog color and the other with eye color. I
am trying to identify the number of grey dogs that have blue eyes. Dog
color is in one column, eye color is another. I'd be very grateful for
any help....just a PhD student trying to finish my dissertation.
thanks, judy
p.s. the specifics are made up but the problem has caused me an hour
and a half of frustration.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paul
 
Posts: n/a
Default Identify number of items with characterisitics from two columns

sumproduct will do it for you
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
paul
remove nospam for email addy!



" wrote:

I have two columns, one with dog color and the other with eye color. I
am trying to identify the number of grey dogs that have blue eyes. Dog
color is in one column, eye color is another. I'd be very grateful for
any help....just a PhD student trying to finish my dissertation.
thanks, judy
p.s. the specifics are made up but the problem has caused me an hour
and a half of frustration.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JudithJubilee
 
Posts: n/a
Default Identify number of items with characterisitics from two columns

Hello,

If you have your dog colour in A and your eye colour in B:

=SUMPRODUCT(--(A1:A100="Grey"),--(B1:B100="Blue"))

If you need more of the same it would be easier if you designated a cell for
each, ie. D1 for Dog Colour and E1 for Eye Colour you could have the
following:

=SUMPRODUCT(--(A1:A100=$D$1),--(B1:B100=$E$1))

You can then just type your new criteria in the D and E

Judith
--
Hope this helps


" wrote:

I have two columns, one with dog color and the other with eye color. I
am trying to identify the number of grey dogs that have blue eyes. Dog
color is in one column, eye color is another. I'd be very grateful for
any help....just a PhD student trying to finish my dissertation.
thanks, judy
p.s. the specifics are made up but the problem has caused me an hour
and a half of frustration.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
L. Howard Kittle
 
Posts: n/a
Default Identify number of items with characterisitics from two columns

Try:

=SUM(IF(A1:A6=D1,IF(B1:B6=E1,1,0),0))

Where your list is in A & B
Where D1 is the color of the dog
Where E1 is the eye color

Use CTRL + SHIFT + ENTER to enter.

HTH
Regards,
Howard

wrote in message
oups.com...
I have two columns, one with dog color and the other with eye color. I
am trying to identify the number of grey dogs that have blue eyes. Dog
color is in one column, eye color is another. I'd be very grateful for
any help....just a PhD student trying to finish my dissertation.
thanks, judy
p.s. the specifics are made up but the problem has caused me an hour
and a half of frustration.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default Identify number of items with characterisitics from two columns


=SUM(IF((A1:A8=C1)*(B1:B8=D1),1,0))

"I am trying to identify the number of grey dogs that have blue eyes.
"

this is an array formula so you need to
ctrl shift enter to get it to work

this example has the color of dogs in range A1:A8 and eye color in
range B1:B8
C1 you can type in the dog color and D1 you can type in the eye color
that you want to add up

Place the above formula in E1, don't forget to ctrl shift enter


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=528910



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Identify number of items with characterisitics from two columns

As an alternative if you want to do other comparisons, you might
consider using autofilters. You could filter for dog colour in one
column and for eye colour in another and this formula would give you a
count of the visible rows:

=SUBTOTAL(3,A3:A5000)

You could insert a new row at the very top of your spreadsheet and put
this formula there, so that it is always visible when you apply the
filters. I am assuming that you have a header row (which would become
row 2), so that your data begins in row 3. Adjust the range to suit.
Choosing other filters would allow you to record other counts.

Hope this helps.

Pete

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
Join three columns containing phone number and format as (000) 000 Sharon Barr Excel Discussion (Misc queries) 5 March 10th 06 10:37 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Multiply two columns in Excel or one column by one number Axia's Mom New Users to Excel 1 January 12th 06 03:22 AM
concatenating and formatting area code and phone number columns sherri Excel Worksheet Functions 4 September 1st 05 09:59 PM
Increasing number of columns in spreadsheet ren422 Excel Discussion (Misc queries) 2 April 15th 05 11:57 AM


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