Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / May 2006

Tip: Looking for answers? Try searching our database.

Copying cells with similar column values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mohd21uk - 12 May 2006 15:04 GMT
I have two worksheets in a spreadsheet with similar values in Sheet 1 Column
A and Sheet 2 Column A. I would like to create macro that would match like
values in column A in both sheets and copy the entire row in Sheet B to Sheet
A.

I have provided an example below:

Before:

Sheet 1

A       B         C           D     E
250  mE       1
300 YOU   2
360 ME     3

Sheet 2

A               B                  C
250         Good         2905
300         Bad           1605
360         Good          5000

After

Sheet 1

A            B              C           D              E               F
250       Me             1          250         Good        2905
300      You              2      300          Bad            1605

Many thanks in advance
Miguel Zapico - 12 May 2006 15:55 GMT
You may use the VLOOKUP formula in columns E and F, something like:
=VLOOKUP(A1,Sheet2!$A$1:$C$3,2,FALSE) - column E
=VLOOKUP(A1,Sheet2!$A$1:$C$3,3,FALSE) - column F

You may need to change the range on the VLOOKUP to match your current range.

Hope this helps,
Miguel.

> I have two worksheets in a spreadsheet with similar values in Sheet 1 Column
> A and Sheet 2 Column A. I would like to create macro that would match like
[quoted text clipped - 28 lines]
>
> Many thanks in advance
mohd21uk - 15 May 2006 09:32 GMT
Is there a macro that would do just this.

Thanks

>You may use the VLOOKUP formula in columns E and F, something like:
>=VLOOKUP(A1,Sheet2!$A$1:$C$3,2,FALSE) - column E
[quoted text clipped - 10 lines]
>>
>> Many thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.