why does my boss want this done?!!

duckfoot

New Member
Joined
Apr 21, 2002
Messages
22
I'm not sure if it can be easily done but I have a column 20000 or so rows long and have been asked to tidy it up. I have repeated data throughout the column and so (when i sort it) may have, say: 5 rows of xxxx, 16 rows of yyyy and then 1 row of zzzz, etc... I need to know how to quickly delete the repeated entries leaving just the first cell of a series of identical entries. Maybe a macro, or some lind of function... Please help. I can't go through it manually, it'll take a week!!!
 
On 2002-04-30 07:24, Asala42 wrote:
Hiya,

I see a lot of coding for this question but if you have the data sorted already, why not use a quick formula?

In an inserted blank column (starting with say A2): =if(B2=B1,"",B2)

Then copy/paste it over as values, then delete or hide the original column.

Adam


This is almost the same as what the Memicol/Amds macro does, and Amds suggested doing it manually if it's just a one-off.

Note : Asala42's suggested method will convert any formulas in the original column (if it is deleted) to values only - the Memicol/Amds method will retain any formulas.

To use the Memicol/Amds macro, you need to give it a name :-

Sub Whatever()
'Put the code here
End Sub
This message was edited by ldry on 2002-04-30 07:40
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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
Back
Top