Solved

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

Posted on 2011-09-06
5
175 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
Comment Utility
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
Comment Utility
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:teylyn
Comment Utility
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
Comment Utility
Thanks.  -Jim
0
 
LVL 65

Author Comment

by:Jim Horn
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

763 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

12 Experts available now in Live!

Get 1:1 Help Now