Count of unique MAC address entries from a dynamic range

Sparky

Board Regular
Joined
Feb 18, 2002
Messages
210
Office Version
  1. 2010
Platform
  1. Windows
I have a dynamic range of data in column D (starting at D3), it can extend to 40,000 rows.
It consists of MAC addresses in this format 94:FB:29:06:1C:E4

How do I count the unique MAC address entries to appear in cell D2?

Thanks in advance
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You want to sum the number of unique MACs?

use XL2BB to post representative example and expected result
 
Upvote 0
Hi Try This!

Use this if there is no blank in range D3:D40000,
=SUMPRODUCT(1/COUNTIFS(D3:D40000,D3:D40000))

Use this if there is blank in range D3:D40000, ctrl+shift+enter
{=SUMPRODUCT(IF(D3:D40000<>"",1/COUNTIFS(D3:D40000,D3:D40000)))}
 
Upvote 0
Solution
I suggest that you update your Account details (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’)

Depending on your version another option might be
Excel Formula:
=COUNTA(UNIQUE(FILTER(D3:D40000,D3:D40000<>"")))
 
Upvote 0
Hi Try This!

Use this if there is no blank in range D3:D40000,
=SUMPRODUCT(1/COUNTIFS(D3:D40000,D3:D40000))

Use this if there is blank in range D3:D40000, ctrl+shift+enter
{=SUMPRODUCT(IF(D3:D40000<>"",1/COUNTIFS(D3:D40000,D3:D40000)))}
alz

Thank you
This gives the desired outcome.
 
  • Like
Reactions: alz
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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