Solved

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

Posted on 2011-09-06
5
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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 66

Author Closing Comment

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

691 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