LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default unique list from a range of cells

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.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
function to only show unique cells in range (e.g. B2:B20) OnTheEdge Excel Worksheet Functions 6 November 11th 08 02:03 AM
Getting a unique list, then counting in a range JN[_2_] Excel Worksheet Functions 3 September 25th 08 06:14 PM
List of unique entries in range Steve E Excel Programming 3 October 3rd 06 02:22 AM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM
defining unique range of cells for different sheets as the same n. KSAPP Excel Discussion (Misc queries) 1 March 30th 05 07:18 PM


All times are GMT +1. The time now is 04:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"