Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jdb
 
Posts: n/a
Default Comparing Columns, Then copying data


I have two worksheets.

The first is called Master list. Each row is unique...the first field is a
unique ID number, the second field is a name.

The second worksheet is called Orders. Each row is NOT unique, the first
field is a name.

I want to add the unique ID field from Master List to each record in Orders.

So, I think I want to compare the name in Orders to the name in Master List
and, if they are equal, copy the ID number to a new column.

But I have no idea how to do that. I've tried if statements, but cannot get
it right.

Please help.

Thank you.


--
Joe
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Comparing Columns, Then copying data

One way would be to insert this formula in cell C1 of the Master List sheet
and copy down as far as you have data in columns A and B.....

=VLOOKUP(B1,Orders!A:A,1,FALSE)

Then, do Copy PasteSpecial Values on Column C.....
Where you have values in column C are the rows where you have exact matches
between the two lists...........then manupulate the data to suit........

hth
Vaya con Dios,
Chuck, CABGx3



"jdb" wrote:


I have two worksheets.

The first is called Master list. Each row is unique...the first field is a
unique ID number, the second field is a name.

The second worksheet is called Orders. Each row is NOT unique, the first
field is a name.

I want to add the unique ID field from Master List to each record in Orders.

So, I think I want to compare the name in Orders to the name in Master List
and, if they are equal, copy the ID number to a new column.

But I have no idea how to do that. I've tried if statements, but cannot get
it right.

Please help.

Thank you.


--
Joe

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
Data in narrow columns truncated when saving as DBF Ben Amada Excel Discussion (Misc queries) 2 October 11th 05 11:23 PM
Convert 1 row of data into Multiple columns Mohoney Excel Discussion (Misc queries) 1 August 25th 05 12:36 PM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 3 February 12th 05 02:04 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Comparing Data in 2 columns suzb Excel Worksheet Functions 2 January 6th 05 02:39 AM


All times are GMT +1. The time now is 04:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"