Solved

Excel question

Posted on 2013-06-11
2
164 Views
Last Modified: 2013-06-13
I have two columns.  Column A contains first and last names.  Column B is the category of the job.  A person will have completed jobs in different categories and in the same category; and so their name will show up more than once in column A.

I want to be able to query the job category and then show how many times the person is in that category.

Say, John Smith is in column A twice and both categories for him are MOWING.  I want to query it and then format the result to show:

John Smith 2
0
Comment
Question by:dorianit
2 Comments
 
LVL 17

Assisted Solution

by:Kent Dyer
Kent Dyer earned 250 total points
ID: 39239960
Pivot should do what you are looking for.

See attached.

HTH,

Kent
Pivot-sample.xlsx
0
 
LVL 23

Accepted Solution

by:
Michael74 earned 250 total points
ID: 39240287
Another solution would be to have another column for the count and use the countif expression

For example if you want to count the number of times the value in A1 appears in column A use

=COUNTIF($A:$A, A1)

You can then just drag the formula down to fill the range

Michael
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
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…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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