Solved

Need the formula for counting names in one column + counts in other columns

Posted on 2011-09-06
5
176 Views
Last Modified: 2012-05-12
Given this series of data:

Person1   yes
Person1   yes
Person1
Person1
Person2   yes
Person2  
Person2
Person3   yes
Person3   yes
Person3   yes

I would like to create a function that returns the below recordset
(Columns are Person Name, Count of Yes, Count of all rows for that person)
Person1  2  4
Person2  1  3
Person3  3  3

Thanks in advance.
Jim
0
Comment
Question by:Jim Horn
5 Comments
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
ID: 36491110
What about a pivot table? Add a header row, Name in the row field, Count of Yes and Count of Name in the data field.
0
 
LVL 4

Expert Comment

by:Mattijs33
ID: 36491123
You can use COUNT and COUNTIF
I have added a Dutch example. COUNT = AANTAL, COUNTIF = AANTALLEN.ALS
count.xlsx
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 36492291
I'd follow StephenJR's suggestion and use a pivot table. The benefit is that you do not have to create the list of unique names manually. Drag the Name into the row area, and into the Values area drag Name (again) and Status. Set both value fields to Count. See attached,

cheers, teylyn
pivot.xlsx
0
 
LVL 65

Author Closing Comment

by:Jim Horn
ID: 36561002
Thanks.  -Jim
0
 
LVL 65

Author Comment

by:Jim Horn
ID: 36561010
Thanks guys.    Mattijs33 - I'll explore the example you provided at a later time, and if I have follow-on questions I'll post them and keep you in mind.  -Jim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now