Help with some Excel Code...

djboxy

New Member
Joined
Sep 20, 2006
Messages
4
I have an excel coding related question
I have a list of names,
and in that list there are a couple of repeating names
eg: have the name Ben 6 times and the name Dan 2 times
how do I turn that list into a new list where names do not repeat?
(Don't mind using VBA Macro, I just dunno how to code)


Thanks in advanced, Ben Benedek.
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You could use Data|Filter|Advanced Filter, Unique records only, Copy to another location.
 

djboxy

New Member
Joined
Sep 20, 2006
Messages
4
Umm thanks for the quick reply,
I was wondering though if it was possible to do using code,
meaning, not manually...

Any idea?
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows

ADVERTISEMENT

Hello,

use the macro recorder and do what has already been suggested.
 

djboxy

New Member
Joined
Sep 20, 2006
Messages
4
I'm asking this question for a friend, I am a total newbie to Excel,
I don't have it on my computer, nor have I ever used Excel or
any Microsoft product. :>

If possible I'll need farther explenation, thanks again.
 

Joe Was

MrExcel MVP
Joined
Feb 19, 2002
Messages
7,539
Select the Column Label. Excel ToolBar: Data - Filter - Advanced Filter...
Then Check the Unique Records only box. If your column has a Label you may get a warrning, just click OK, if you do not have a label on your column and you get a warrning click No or countinue.
 

Watch MrExcel Video

Forum statistics

Threads
1,114,060
Messages
5,545,761
Members
410,704
Latest member
Cobber2008
Top