Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried the following code several times and it didn't
work??? Sub GetUnique() Dim rng as Range, rng1 as Range with Worksheets("Sheet2") set rng = .Range("A1:A1000") rng.Formula = "=row()" rng.Formula = rng.Value rng.offset(0,1).Formula = "=If(countif(Sheet1!A1:Z100,A1) 0,"""",na())" On error Resume Next set rng1 = rng.offset(0,1).SpecialCells (xlFormulas,xlErrors) On Error goto 0 if not rng1 is nothing then rng1.EntireRow.Delete End if .Columns(2).Delete End With End Sub -- Regards, Tom Ogilvy "scrabtree" wrote in message ... Hello. I have posted this question a couple times and haven't got the answer I need yet. Past suggestions have suggested using advanced filter, but that don't do what I need. I have a table in Sheet1 A1:Z100. I need, in Sheet2 Column A:A a list of all the unique values in Sheet1 A1:Z100 that are between the values of 1 and 1,000. Please help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unique entries | New Users to Excel | |||
Unique Entries | Excel Worksheet Functions | |||
Unique Entries | Excel Worksheet Functions | |||
unique entries | Excel Programming | |||
Unique Entries | Excel Programming |