Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default countif -- mulipl choices

I have on sheet 1 john -- sick
bill --- sick
john --- sick
ted ----- sick
john --- broken leg
is it possible to show on sheet 2 john - sick = 2
john - broken leg = 1
bill - sick = 1
etc. etc.
--
grizz
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default countif -- mulipl choices

Assuming that A1:A10 contains names and B1:B10 contains some sort of
ailments, (with A1 being the header NAME and B1 being the header AILMENT)
you can easily summarize using a pivot table. Also assuming you're using
Excel 2007, perform the following steps:

1. Select any cell within A1:B10
2. Choose Insert-Pivottable.
3. Select OK to create the pivottable
4. Check both Name and Ailment in the field list box.
5. Drag Ailment down to the Values box in the lower right of the field list.

This will give you a pivot table showing each person, their ailments, and
the count of ailments.

From there, you can play around with the pivot and add formatting, remove or
add totals, etc.

Happy calculating!

If you like this answer, please click ''Yes.''




"grizzly6969" wrote:

I have on sheet 1 john -- sick
bill --- sick
john --- sick
ted ----- sick
john --- broken leg
is it possible to show on sheet 2 john - sick = 2
john - broken leg = 1
bill - sick = 1
etc. etc.
--
grizz

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default countif -- mulipl choices

Hi,

here is a formula approach:

=SUMPRODUCT(--(A1:A10="John"),--(B1:B10="sick"))

or put the name in a cell, say D1 and sick in E1 and use

=SUMPRODUCT(--(A$1:A$10=D1),--(B$1:B$10=E1))

In 2007 you can use

=COUNTIFS(A$1:A$10,D1,B$1:B$10=E1)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"grizzly6969" wrote:

I have on sheet 1 john -- sick
bill --- sick
john --- sick
ted ----- sick
john --- broken leg
is it possible to show on sheet 2 john - sick = 2
john - broken leg = 1
bill - sick = 1
etc. etc.
--
grizz

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default countif -- mulipl choices


"Shane Devenshire" wrote in
message ...

In 2007 you can use

=COUNTIFS(A$1:A$10,D1,B$1:B$10=E1)


I think that you mean

=COUNTIFS(A$1:A$10,D1,B$1:B$10,E1)



__________ Information from ESET Smart Security, version of virus signature database 3832 (20090206) __________

The message was checked by ESET Smart Security.

http://www.eset.com




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
Choices Baffled[_2_] Excel Discussion (Misc queries) 1 September 29th 08 10:01 PM
Nested IF with = and <= choices Clark Excel Worksheet Functions 4 August 1st 08 06:45 PM
=if with multiple choices 4Proffit Excel Worksheet Functions 1 March 28th 06 05:50 PM
Choices for User Disconer Excel Worksheet Functions 0 October 28th 05 06:31 PM
Choices [email protected] Excel Worksheet Functions 0 December 21st 04 12:07 AM


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