Count Multiples based on data

Grandma8

Board Regular
Joined
Jun 29, 2010
Messages
105
Office Version
  1. 365
Platform
  1. Windows
Data below shows and ID number next to the year of participation in our program. The goal is to find out the number of individuals that participated in all three years (2014, 2015, 2016). I can do this manually but prefer using a formula. I do not know VBA, macros, etc. so I am hoping that a formula is possible. The data below shows one person participated in all three years. The list I am working with has about 90 names. Please advise. Thank you.

Sample Data

IDYear
10592014
10592015
11062014
11912015
11912016
12162014
12402015
12752014
12752015
12752016

<tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Grandma8,

Assuming your data is in the range A2:B90, add the formula in an adjacent column.
=COUNTIF($A$2:$A$90,A2)
This will give you a count in each row of the number of times that an ID is present in the list. You can then use autofilter to reduce the list to only those with 3 years, one row will show per year for each ID.

Another quick method is to create a pivot table of the data, with the ID in the rows, and the year in the columns. This will provide a quick summary of the participation across years, with an indicator by column for each year. Let me know if you need assistance with this.
 
Upvote 0
The countif formula does give me a view where I can easily see how many "3s" there are which indicates participation in all three years. I am unfamiliar with Pivot tables. Since column A has duplication of numbers, will a pivot table only show the ID number once and then populate the appropriate years in the column? Can you provide me the best source of instruction for learning pivot tables?
 
Upvote 0
I was able to get started with the pivot table but the data is not correct. Also, the columns are not sorting in numeric order. Can I share the data with you? If so, what is the best way for you to receive the file? Again, I am not savvy in this area.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top