Count Distinct

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
131
Office Version
  1. 2016
Platform
  1. Windows
I have a spreadsheet that may have multiple numbers for the same item...I want to simply count how many are in the row that are UNIQUE

Example

A B
1 Power supply 1111
2 Mother board 1111
3 Circuit card 1111
4 Power Supply 2222
5 Power supply 3333
6 Cirucit card 3333

If I =counta(B1:B6) it will return 6...The answer I want it to return is "3" because there are only really 3 "distinct" or "unique" numbers

Thanks:)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Oh and by the way a Pivot Table really won't help me in this case.

Thanks,
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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