Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the original is in columns A & B & C, then first copy them to D & E & F
and run: Sub ordinate() Set r1 = Intersect(ActiveSheet.UsedRange, Range("D:F")) For i = 4 To 6 n = Cells(Rows.Count, i).End(xlUp).Row For j = n To 1 Step -1 v = Cells(j, i).Value If Application.WorksheetFunction.CountIf(r1, v) 1 Then Cells(j, i).Delete Shift:=xlUp End If Next Next End Sub -- Gary''s Student gsnu200710 "elaine" wrote: i was thinking whether theres a way to display in the nex available column. when that column is full, then display on the next available column etc. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
function to only show unique cells in range (e.g. B2:B20) | Excel Worksheet Functions | |||
Getting a unique list, then counting in a range | Excel Worksheet Functions | |||
List of unique entries in range | Excel Programming | |||
Condensing a list/range with blank cells to a new list/range without blanks | Excel Worksheet Functions | |||
defining unique range of cells for different sheets as the same n. | Excel Discussion (Misc queries) |