PC Review


Reply
Thread Tools Rate Thread

How to create/run "cell A equals Cell B put Cell C info in Cell D

 
 
=?Utf-8?B?YWJtYjE2MQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
I need to match data in cell A to cell B and then if they equal I need to
copy the adjacent cell C to cell X . How do I set up a macro to do this
automatically? I have over 5000 cells to compare and match up.. Can anyone
help? I have Office 2003.
 
Reply With Quote
 
 
 
 
vezerid
Guest
Posts: n/a
 
      26th Jan 2006
You can do it with a formula. In X1 you type

=IF(A1=B1, C1, "")

And you copy down as far as necessary.

Does this help?
Kostis Vezerides

 
Reply With Quote
 
=?Utf-8?B?Sm9uYXRoYW4gQ29vcGVy?=
Guest
Posts: n/a
 
      26th Jan 2006
Does it have to be a macro? You could just put an IF statement into column
X, that says =if(exact(A1,B1),C1,""). Copy/paste the formula down. Then
autofilter or advanced filter the results.

"abmb161" wrote:

> I need to match data in cell A to cell B and then if they equal I need to
> copy the adjacent cell C to cell X . How do I set up a macro to do this
> automatically? I have over 5000 cells to compare and match up.. Can anyone
> help? I have Office 2003.

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      26th Jan 2006
In cell Z1 enter:

=IF(A1=B1,C1,"")
and then copy down
--
Gary's Student


"abmb161" wrote:

> I need to match data in cell A to cell B and then if they equal I need to
> copy the adjacent cell C to cell X . How do I set up a macro to do this
> automatically? I have over 5000 cells to compare and match up.. Can anyone
> help? I have Office 2003.

 
Reply With Quote
 
mphell0
Guest
Posts: n/a
 
      26th Jan 2006

In cell X1 put

=IF(A1=B1,C1,[whatever happens if A1 and B1 are not the same]

copy down as needed


--
mphell0
------------------------------------------------------------------------
mphell0's Profile: http://www.excelforum.com/member.php...o&userid=30153
View this thread: http://www.excelforum.com/showthread...hreadid=505426

 
Reply With Quote
 
OZDOC1050
Guest
Posts: n/a
 
      26th Jan 2006
Sub CTOX()
Application.ScreenUpdating = False
Range("A1").Select
Do Until ActiveCell.Value = ""
If ActiveCell.Value = ActiveCell.Offset(0, 1).Value Then
ActiveCell.Offset(0, 23).Value = ActiveCell.Offset(0, 2).Value
End If
ActiveCell.Offset(1, 0).Select
Loop
Range("A1").Select
Application.ScreenUpdating = True
End Sub

This is if all 5000 in the column A are together with no breaks, it can be
adjusted to suit if there are breaks.

R
Pete

--
(][ THIS EMAIL HAS BEEN SCANNED BY NORTON ANTIVIRUS ][)
"abmb161" <(E-Mail Removed)> wrote in message
news:B6AA6134-A757-4627-B86C-(E-Mail Removed)...
>I need to match data in cell A to cell B and then if they equal I need to
> copy the adjacent cell C to cell X . How do I set up a macro to do this
> automatically? I have over 5000 cells to compare and match up.. Can anyone
> help? I have Office 2003.



 
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
if cell equals "a" then another cell would calculate percentage Brandy Microsoft Excel Worksheet Functions 1 20th Jun 2008 05:18 PM
Using a cell reference to create linked info in another cell LCrowe Microsoft Excel Misc 2 28th Feb 2008 05:26 PM
Look for cell containing "Initial" then if the next cell after equals "Final" then delete both rows. amorrison2006@googlemail.com Microsoft Excel Programming 3 28th Sep 2007 01:45 PM
If cell is left blank, or equals zero, then cell equals a different cell John McMurry Microsoft Excel Misc 3 13th Apr 2007 01:14 PM
if cell contains string then make cell next to it equals "X" alex.kemsley@hottubs2buy.co.uk Microsoft Excel Programming 1 21st Jun 2006 06:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 AM.