Formula to make a list of only unique Names from column

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
Hi have a sheet called PDD that has lots of details in it,

I'm creating a dashboard that lets me filter out some data and need to make list of the unique names froma filtered list.

So i'll run a macro to say select the dates and the product type,
and I have a filtered sheet of all this data

now what I need is a list of unique Names rom the data left in Column D (I want to do this to lots of columns but effectively if we do column D I can repeat in as in wish)

If I was righting the formula in English it would go like this:

In Sheets "Cals1" Starting at D2 make a list of all the unique names in sheet PDD range D10:D500 visible cells only.
(a macro might also be ok but it would need to run very quickly as i'll have about 100 of these to do, so a formula will be easier to reproduce.)
any ideas if this can be done and how best to do it?
thanks
Tony
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
For that sized range I think this should be fast enough. Give it a try.

VBA Code:
Sub UniqueList()
  Dim d As Object
  Dim c As Range
 
  Set d = CreateObject("Scripting.Dictionary")
    For Each c In Sheets("PDD").Range("D10:D500").SpecialCells(xlVisible)
      d(c.Value) = Empty
    Next c
  Sheets("Cals1").Range("D2").Resize(d.Count).Value = Application.Transpose(d.Keys())
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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