Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Removing duplicate rows

I need to remove entire rows if the cells in a particular column are the same.

I just want to keep one of the rows. I tried "UNIQUE RECORDS" in the
advanced filterin the DATA MENU, but it doesn't seem to work. I still have
all the duplicates.

Jase
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removing duplicate rows

Say we are interested in column B have have made sure there is a label cell
on the top:

item
dog
dog
hat
bat
hat
spat
bat

we want to drop the rows with duplicate dogs, etc.

In another column, say column C, put a label in C1 and in C2 enter:
1
In C3 enter:
=COUNTIF(B$2:$B3,B3) and copy down

We see:

item counts
dog 1
dog 2
hat 1
bat 1
hat 2
spat 1
bat 2

Use autofilter on column C to view only the 1's (first instance of any
duplicate):

item counts
dog 1
hat 1
bat 1
spat 1

Copy these visible rows and paste elsewhere.

--
Gary''s Student - gsnu200751


"Jase4now" wrote:

I need to remove entire rows if the cells in a particular column are the same.

I just want to keep one of the rows. I tried "UNIQUE RECORDS" in the
advanced filterin the DATA MENU, but it doesn't seem to work. I still have
all the duplicates.

Jase

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Removing duplicate rows

This doesn't help. I need to DELETE or REMOVE, not hide the information.

"Gary''s Student" wrote:

Say we are interested in column B have have made sure there is a label cell
on the top:

item
dog
dog
hat
bat
hat
spat
bat

we want to drop the rows with duplicate dogs, etc.

In another column, say column C, put a label in C1 and in C2 enter:
1
In C3 enter:
=COUNTIF(B$2:$B3,B3) and copy down

We see:

item counts
dog 1
dog 2
hat 1
bat 1
hat 2
spat 1
bat 2

Use autofilter on column C to view only the 1's (first instance of any
duplicate):

item counts
dog 1
hat 1
bat 1
spat 1

Copy these visible rows and paste elsewhere.

--
Gary''s Student - gsnu200751


"Jase4now" wrote:

I need to remove entire rows if the cells in a particular column are the same.

I just want to keep one of the rows. I tried "UNIQUE RECORDS" in the
advanced filterin the DATA MENU, but it doesn't seem to work. I still have
all the duplicates.

Jase

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removing duplicate rows

I understand... The paste will not paste the hidden rows. They will be
removed.
--
Gary''s Student - gsnu200751


"Jase4now" wrote:

This doesn't help. I need to DELETE or REMOVE, not hide the information.

"Gary''s Student" wrote:

Say we are interested in column B have have made sure there is a label cell
on the top:

item
dog
dog
hat
bat
hat
spat
bat

we want to drop the rows with duplicate dogs, etc.

In another column, say column C, put a label in C1 and in C2 enter:
1
In C3 enter:
=COUNTIF(B$2:$B3,B3) and copy down

We see:

item counts
dog 1
dog 2
hat 1
bat 1
hat 2
spat 1
bat 2

Use autofilter on column C to view only the 1's (first instance of any
duplicate):

item counts
dog 1
hat 1
bat 1
spat 1

Copy these visible rows and paste elsewhere.

--
Gary''s Student - gsnu200751


"Jase4now" wrote:

I need to remove entire rows if the cells in a particular column are the same.

I just want to keep one of the rows. I tried "UNIQUE RECORDS" in the
advanced filterin the DATA MENU, but it doesn't seem to work. I still have
all the duplicates.

Jase

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
removing duplicate rows exceluser2 Excel Discussion (Misc queries) 1 March 2nd 06 09:01 AM
removing duplicate rows exceluser2 Excel Discussion (Misc queries) 3 March 2nd 06 01:51 AM
Removing duplicate entries. dh01uk Excel Discussion (Misc queries) 2 January 13th 06 03:51 PM
Removing Duplicate Rows bvinternet Excel Discussion (Misc queries) 1 July 23rd 05 09:26 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM


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