Count unique occurrence based on 2 column conditions

DevAlex

New Member
Joined
May 26, 2022
Messages
14
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I have 2 columns. Column A is 4 months (January - April), Column B is Years (2015 - 2020). Each Row has a different month and year, but some month and year combinations might repeat. I want to count the number of unique occurrences of repeating month and year combinations.

For example, if January | 2015 appears 20 times, I want to count this unique occurrence as 1. I want this to repeat for all potential year and month combinations.

Any help is appreciated. Thank you.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try:
Book1
ABCD
1MonthYearUnique Count
2Jan201510
3Feb2015
4March2015
5April2015
6Jan2016
7Feb2016
8March2016
9April2016
10Jan2015
11Feb2016
12March2017
13April2018
14Jan2016
15Feb2016
16March2016
17April2016
Sheet1
Cell Formulas
RangeFormula
D2D2=ROWS(UNIQUE(A2:B17))
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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