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.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

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.
 

Forum statistics

Threads
1,140,915
Messages
5,703,148
Members
421,278
Latest member
16cwilliams

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top