+ Reply to Thread
Results 1 to 9 of 9

Extract unique values from range

Hybrid View

esbencito Extract unique values from... 09-26-2018, 05:36 AM
Sintek Re: Extract unique values... 09-26-2018, 07:19 AM
esbencito Re: Extract unique values... 09-26-2018, 11:05 PM
czl103 Re: Extract unique values... 09-26-2018, 11:18 PM
AlKey Re: Extract unique values... 09-26-2018, 11:53 PM
EXCELBENCH Re: Extract unique values... 09-30-2018, 06:38 AM
protonLeah Re: Extract unique values... 09-27-2018, 12:03 AM
Sintek Re: Extract unique values... 09-27-2018, 12:32 AM
esbencito Re: Extract unique values... 09-27-2018, 01:38 AM
  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Extract unique values from range

    Not sure if this is what you mean...
    Option Explicit
    
    Sub esbencito()
    Dim Val, i As Long, L(1 To 3) As String
    Application.ScreenUpdating = False
    With Sheet1.UsedRange.Rows
        Range(.Cells(1, 1), .Cells(.Count, 1)).AdvancedFilter xlFilterCopy, , .Range("C1"), True
        Range(.Cells(2, 3), .Cells(.Count, 3)).Sort Key1:=Range("C2"), Order1:=xlAscending, Header:=xlNo
        With .Range("C1").CurrentRegion:  Val = .Value:  .Clear:  End With
        For i = 2 To UBound(Val)
            L(i - 1) = Val(i, 1)
            Debug.Print L(i - 1)
        Next i
    End With
    Application.ScreenUpdating = True
    End Sub
    Last edited by Sintek; 09-26-2018 at 07:26 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 10-27-2016, 07:33 PM
  2. [SOLVED] Extract Unique values in range
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2014, 06:39 AM
  3. Replies: 2
    Last Post: 02-13-2013, 03:14 PM
  4. Replies: 3
    Last Post: 11-24-2011, 06:11 AM
  5. Replies: 3
    Last Post: 09-20-2011, 05:05 PM
  6. Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1