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
 

Some videos you may like

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.

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
You want to sum the number of unique MACs?

use XL2BB to post representative example and expected result
 

alz

Board Regular
Joined
Jul 17, 2020
Messages
130
Office Version
  1. 2019
Platform
  1. Windows
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)))}
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,898
Office Version
  1. 365
Platform
  1. Windows
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<>"")))
 

Sparky

Board Regular
Joined
Feb 18, 2002
Messages
210
Office Version
  1. 2010
Platform
  1. Windows
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

Watch MrExcel Video

Forum statistics

Threads
1,122,454
Messages
5,596,228
Members
414,046
Latest member
mbeutler1203

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
Top