Formula to delete every second row

Berno

New Member
Joined
Jun 18, 2008
Messages
2
Hi there,

I have a spreadsheet with duplicate data on every second row, just wondering if anyone knows of a formula that will delete every second row...

Thanks!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Well formulas dont delete so if you are just looking for an easy way to identify what you need to delete, add a formula to an empty column that says
=A1=A2
Then copy the formula down the length of the data.
Every duplicate row will return TRUE.
Then using a data filter, you can filter and delete all the TRUEs.
 
Upvote 0
If your data is unsorted:

If column A has the unique identifier:

enter this formula into row one in an available column, and drag down all of the rows:
=COUNTIF($A$1:A1,A1)

That will number each record (first occurance of a dupe will have a 1, second occurance will have a 2, and so on)

Copy all of the formulas that you just entered then Paste Special... Values
Now you can sort on that column and delete all rows that have a number greater than 1
 
Upvote 0
Highlight it, apply an advanced filter, choose Copy to another location, choose where to copy it and tick Unique records only.
 
Upvote 0
THANK YOU THANK YOU THANK YOU!!

You have saved me lots of time!

Very much appreciated!
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,216
Members
448,876
Latest member
Solitario

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