Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default unique list from a range of cells

Hi,

I have several columns of data, they are all names.


Some of the names are duplicate within the range of columns. Is there
a way to display a unique list of data in the next available column?


Thanks.
Elaine.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default unique list from a range of cells

Say your data is in columns A & B & C.

1. put a label in D1 and copy ALL your data to column D
at this point the column A data is in the top part of column d
the column B data is in the mid part of column D
the column C data is in the lower part of column D


2. Pull-down:
Data Filter... Advanced FIlter and choose Unique records only.
--
Gary''s Student
gsnu200710


"elaine" wrote:

Hi,

I have several columns of data, they are all names.


Some of the names are duplicate within the range of columns. Is there
a way to display a unique list of data in the next available column?


Thanks.
Elaine.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default unique list from a range of cells

hi, what if i have more tahn 30,000 rows in each column?? i cant put
all the info into one single column as the max number of row is just
about 65k rows?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default unique list from a range of cells

In that case even the uniques may be more than 65536 entries. Where should
they be stored??
--
Gary''s Student
gsnu200710


"elaine" wrote:

hi, what if i have more tahn 30,000 rows in each column?? i cant put
all the info into one single column as the max number of row is just
about 65k rows?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default unique list from a range of cells

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.




  #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.



Reply
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 05:41 AM.

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

About Us

"It's about Microsoft Excel"