Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default List cell content without duplication or blanks

Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.

Col A Col B

A A
B B
C C
B D
D E
E F
A
A
F

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default List cell content without duplication or blanks

Max showed this the other day

In c1 type; =IF(B1="","",IF(ISNUMBER(MATCH(B1,A:A,0)),"",ROW() ))
in d1 type; =IF(ROW()COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROW()) ))

drag both formulas down as far as required C to end of data and d until no
further results are shown.

Peter

"Mik" wrote:

Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.

Col A Col B

A A
B B
C C
B D
D E
E F
A
A
F


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default List cell content without duplication or blanks

Hi,

You can solve this problem by using Advanced Filter option in Excel.

For example

A (Column)

Name
a
c
a
e
a
d
a
e

Just click on the label (in the above example it is Name (Cell A1), And then
click

Data-- Advanced Filter -- And then click the check box, Unique records
only check box. And also give the cell address in which you want to display
the unique records (Copy to option in dialog box, example B1).

Then you will get the following output

A B
name name
a a
c c
a e
e d
a
d
a
e


Hope this will clear your doubt.

Regards,
Soundar


"Mik" wrote:

Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.

Col A Col B

A A
B B
C C
B D
D E
E F
A
A
F


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default List cell content without duplication or blanks

On 15 Oct, 16:01, Billy Liddel
wrote:
Max showed this the other day

In c1 type; =IF(B1="","",IF(ISNUMBER(MATCH(B1,A:A,0)),"",ROW() ))
in d1 type; =IF(ROW()COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROW()) ))

drag both formulas down as far as required C to end of data and d until no
further results are shown.

Peter



"Mik" wrote:
Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.


Col A Col B


A A
B B
C C
B D
D E
E F
A
A
F- Hide quoted text -


- Show quoted text -



Peter,

Thanks for your answer.

If i explain the purpose of my subject (which i should have done in my
first post), may'be you could help me further, or show an easier way
of achieving this.

As mentioned, i have Column A showing many names (some are
duplicated).
I want to create a list box containing these names.

So, i was trying to show the conents of column A in Column B with the
repeated names and blank cells removed.

I would then apply Data validation to the range of cells in column B.

Your answer, taught me something, but i'm not sure if it works in such
a way that i require.

Any thoughts?

Thanks Mike.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default List cell content without duplication or blanks

On 15 Oct, 16:30, Mik wrote:
On 15 Oct, 16:01, Billy Liddel
wrote:





Max showed this the other day


In c1 type; =IF(B1="","",IF(ISNUMBER(MATCH(B1,A:A,0)),"",ROW() ))
in d1 type; =IF(ROW()COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROW()) ))


drag both formulas down as far as required C to end of data and d until no
further results are shown.


Peter


"Mik" wrote:
Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.


Col A Col B


A A
B B
C C
B D
D E
E F
A
A
F- Hide quoted text -


- Show quoted text -


Peter,

Thanks for your answer.

If i explain the purpose of my subject (which i should have done in my
first post), may'be you could help me further, or show an easier way
of achieving this.

As mentioned, i have Column A showing many names (some are
duplicated).
I want to create a list box containing these names.

So, i was trying to show the conents of column A in Column B with the
repeated names and blank cells removed.

I would then apply Data validation to the range of cells in column B.

Your answer, taught me something, but i'm not sure if it works in such
a way that i require.

Any thoughts?

Thanks Mike.- Hide quoted text -

- Show quoted text -



Thanks for your input Soundar,

Not sure if my last reply sent correctly, so here it is again.

Can this Auto Filter be applied (possibly in formula type) so as
column A expands with new data, column B automatically refreshes to
show the filtered data?

Mike



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default List cell content without duplication or blanks

=IF(ISERR(SMALL(IF((Names<"")*(MATCH(Names&"",Nam es&"",0))=ROW(INDIRECT("1:"&ROWS(Names))),MATCH(Na mes&"",Names&"",0)),ROWS($1:1))),"",INDEX(Names,SM ALL(IF((Names<"")*(MATCH(Names&"",Names&"",0))=RO W(INDIRECT("1:"&ROWS(Names))),MATCH(Names&"",Names &"",0)),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down as far as needed


"Mik" wrote:

Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.

Col A Col B

A A
B B
C C
B D
D E
E F
A
A
F


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default List cell content without duplication or blanks

On 15 Oct, 17:33, Teethless mama
wrote:
=IF(ISERR(SMALL(IF((Names<"")*(MATCH(Names&"",Nam es&"",0))=ROW(INDIRECT("1*:"&ROWS(Names))),MATCH(N ames&"",Names&"",0)),ROWS($1:1))),"",INDEX(Names,S M*ALL(IF((Names<"")*(MATCH(Names&"",Names&"",0))= ROW(INDIRECT("1:"&ROWS(Name*s))),MATCH(Names&"",Na mes&"",0)),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down as far as needed



"Mik" wrote:
Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.


Col A Col B


A A
B B
C C
B D
D E
E F
A
A
F- Hide quoted text -


- Show quoted text -




I'm not having too much joy with this one... can't get it to work.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mik Mik is offline
external usenet poster
 
Posts: 42
Default List cell content without duplication or blanks

On 16 Oct, 10:30, Mik wrote:
On 15 Oct, 17:33, Teethless mama





wrote:
=IF(ISERR(SMALL(IF((Names<"")*(MATCH(Names&"",Nam es&"",0))=ROW(INDIRECT("1**:"&ROWS(Names))),MATCH( Names&"",Names&"",0)),ROWS($1:1))),"",INDEX(Names, S*M*ALL(IF((Names<"")*(MATCH(Names&"",Names&"",0) )=ROW(INDIRECT("1:"&ROWS(Na*me*s))),MATCH(Names&"" ,Names&"",0)),ROWS($1:1))))


ctrl+shift+enter, not just enter
copy down as far as needed


"Mik" wrote:
Hello, looking for some help with the following:-
I have a list of names within Column A, some of which are repeated
numerous times.
What i require, is to list in Column B each of the names shown in
Column A (once only), so those names that are repeated, are only
displayed once.


Col A Col B


A A
B B
C C
B D
D E
E F
A
A
F- Hide quoted text -


- Show quoted text -


I'm not having too much joy with this one... can't get it to work.- Hide quoted text -

- Show quoted text -




Thanks for EVERYONE'S help.
Done what i wanted using following code.



Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("A1:A50").AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Range("B1:B50"), Unique:=True

Range("B2:B50").Sort Key1:=Range("B2"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom,
_
DataOption1:=xlSortNormal

End Sub

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
Data Validation List content controlled from cell SteveG[_2_] Excel Worksheet Functions 1 October 12th 07 07:33 AM
Eliminate List Duplication FX 2000 Inc Excel Discussion (Misc queries) 2 January 28th 07 08:07 PM
List out the Duplication data in another worksheet Vicky Excel Discussion (Misc queries) 1 June 14th 06 12:36 PM
Remove Duplication from Validation List? [email protected] Excel Discussion (Misc queries) 1 January 17th 06 02:27 AM
display a drop-down list based on the content of another cell Joe S Excel Discussion (Misc queries) 6 December 6th 05 12:23 AM


All times are GMT +1. The time now is 02:25 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"