Count 1 of each value in a range containing duplicate values

itzzjason

New Member
Joined
Dec 8, 2016
Messages
23
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
What formula can be used to count 1 of each value in a given range?

Using Microsoft Office Home and Business 2016

Please see below example table.
I'd like to count how many apartments are on the list without counting duplicates. So the formula would give a count of 5 for this table.

ABC
1DateApt. #Name
25/25/222AJohn
35/25/222AJason
46/1/227BJack
57/1/2221GIrene
65/30/2221GJennifer
76/30/2221GElizabeth
86/15/229HSteve
95/15/2210CAngela
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Office Home and Business 2016
 
Upvote 0
If you are using 2016 why have you also shown 365 in your profile?

How about
Excel Formula:
=SUMPRODUCT(1/COUNTIFS(B2:B9,B2:B9))
 
Upvote 0
If you are using 2016 why have you also shown 365 in your profile?

How about
Excel Formula:
=SUMPRODUCT(1/COUNTIFS(B2:B9,B2:B9))
I have multiple PCs spanning across work and personal life. Depending on which office I work out of/desktop I use, it can have 365, 2016 (today's desktop), and another version that I can't remember (could be 2019). At home, I think I have 2019. Sometimes I use Google Sheets for both personal and work too.
 
Upvote 0
Ok, in that case it would be best if you specify which version you are using if it's not 365.
 
Upvote 0

Forum statistics

Threads
1,214,887
Messages
6,122,095
Members
449,064
Latest member
Danger_SF

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