PC Review


Reply
Thread Tools Rate Thread

Deleting Cells with Duplicates

 
 
Steve O
Guest
Posts: n/a
 
      3rd Oct 2008
Hello,

I have two columns with numbers. I want to delete cells in both columns if
the data is matched. Here's an example Column A is Amount1 and Column B is
Amount2

Amount1 Amount2
35 1
48 18
21 26
12 48
16 3
39 4
2 21
0.5 13

If the amount exists in column a and b then I want both cells to be deleted
in both columns.

Thanks for the help.
Steve
 
Reply With Quote
 
 
 
 
Sheeloo
Guest
Posts: n/a
 
      3rd Oct 2008
1. Put this in C2 and copy down;
=IF(A2=B2,"Same","")

2. Filter on Same, Edit->Go To->Special->Visible Cells Only and Delete...

"Steve O" wrote:

> Hello,
>
> I have two columns with numbers. I want to delete cells in both columns if
> the data is matched. Here's an example Column A is Amount1 and Column B is
> Amount2
>
> Amount1 Amount2
> 35 1
> 48 18
> 21 26
> 12 48
> 16 3
> 39 4
> 2 21
> 0.5 13
>
> If the amount exists in column a and b then I want both cells to be deleted
> in both columns.
>
> Thanks for the help.
> Steve

 
Reply With Quote
 
Steve O
Guest
Posts: n/a
 
      3rd Oct 2008
Thanks, but I'm looking for VBA code to delete the cells, I know the code if
A2 = B2, but what I can't get to work is holding the value in A3 (48) and
deleting the cell in B5 (48) the match and then deleting A3 and move on to
the next value in col A.


"Sheeloo" wrote:

> 1. Put this in C2 and copy down;
> =IF(A2=B2,"Same","")
>
> 2. Filter on Same, Edit->Go To->Special->Visible Cells Only and Delete...
>
> "Steve O" wrote:
>
> > Hello,
> >
> > I have two columns with numbers. I want to delete cells in both columns if
> > the data is matched. Here's an example Column A is Amount1 and Column B is
> > Amount2
> >
> > Amount1 Amount2
> > 35 1
> > 48 18
> > 21 26
> > 12 48
> > 16 3
> > 39 4
> > 2 21
> > 0.5 13
> >
> > If the amount exists in column a and b then I want both cells to be deleted
> > in both columns.
> >
> > Thanks for the help.
> > Steve

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      3rd Oct 2008
Steve,

Back on October 2nd, there was a thread that seemed similar to your
request. The subject was
"Compare & align like items from 2 Roaster columns of Employees."

Maybe that will help.

Dan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check for Duplicates then Sum cells of duplicates aileen Microsoft Excel Programming 7 11th Dec 2008 03:15 PM
Deleting Duplicates =?Utf-8?B?UGhpbGlwIERydXJ5?= Microsoft Excel Misc 1 3rd Oct 2007 06:26 PM
Finding/deleting duplicates and merging cells =?Utf-8?B?TG91aXNl?= Microsoft Excel Worksheet Functions 1 20th Jan 2006 10:36 AM
Deleting duplicates gavin Microsoft Access Getting Started 8 8th Jul 2005 09:56 PM
Deleting Duplicates Charles Deng Microsoft Excel Programming 3 12th May 2004 05:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 PM.