If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Removing duplicates

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-08, 22:34
nightdune nightdune is offline
Registered User
 
Join Date: Oct 2008
Posts: 1
Post Removing duplicates

Hi , if i have the following data in excel:

Code:
Col A | Col B | Col C
A        sdf      rt
A        fgd      rt
A        fjg       rt
B        vbv      rt
B        hjh       rt
C        cvb      sd
C        dfb       sd
C        xcv       sd
and i want to make it to this using Col A data as the reference point:
Code:
Col A | Col B | Col C
A         sdf       rt
           fgd       
           fjg        
B         vbv      rt
	   hjh       
C	   cvb      sd
	   dfb       
	   xcv
Can any expert out there enlighten me?Thank You

Last edited by nightdune; 10-22-08 at 23:01.
Reply With Quote
  #2 (permalink)  
Old 10-31-08, 14:01
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Well, if you actually do that, you won't be able to sort on the columns with the duplicates any more.

Conditional formatting technique

I'd suggest you use conditional formatting to hide them instead of deleting them. You'll want to select the whole region that you want to hide duplicates in. Look at which cell is active within the selection, it should say the address to the left of the formula bar.

Go to the format menu, choose Conditional Formatting. In the dialog, choose "formula." Now, write a formula like =A2=A1, only A2 should be the cell you selected and A1 should be the cell above it. Then use the formatting options in the dialog to make the text invisible.

Formula / paste special technique

If you really want to delete the blanks, you can try this approach. Insert columns next to the columns you want to delete duplicates from. Type in a formula =IF(A2=A1, "", A2), using the same rule as above. Copy that formula into all appropriate cells. Then select those cells and use Paste Special... to paste just the values in. As I mentioned earlier, sorting won't work any more with this technique.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On