Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default compare two lists in two workbooks

I have two workbooks that has almost same lists (range(a1:z18000)

some of the data are the same, and i want to transfer from the secont
workbook all the data that are not the same.
The column that i want to compare is column(2)
And if the value in workbook(1).worksheet(1).cell (a,2) it exists in target
workbook(2).worksheet(1)
do nothing.
If it doesn't then copy the entire row to the last empty row in target
workbook(1).worksheet(1).


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default compare two lists in two workbooks

in the workbook that might have additional data put in a formula like

In row 1 in an adjacent column
=if(countif([Other.xls"]Sheet1!A:A,A1)0,"","Copy")

then drag fill that down the column.

Then apply an autofilter the data and in the dropdown for the column with
the above formula, select copy.

then select all your data and copy it to the appropriate location.

Turn on the macro recorder while you do this manually if you need code.

--
Regards,
Tom Ogilvy


gus wrote in message
...
I have two workbooks that has almost same lists (range(a1:z18000)

some of the data are the same, and i want to transfer from the secont
workbook all the data that are not the same.
The column that i want to compare is column(2)
And if the value in workbook(1).worksheet(1).cell (a,2) it exists in

target
workbook(2).worksheet(1)
do nothing.
If it doesn't then copy the entire row to the last empty row in target
workbook(1).worksheet(1).




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
compare lists Jim S.[_3_] Excel Discussion (Misc queries) 3 October 14th 09 10:30 AM
Compare lists in Multiple workbooks TimJames Excel Worksheet Functions 0 June 21st 07 06:26 PM
compare name lists deo89 Excel Worksheet Functions 1 February 1st 07 01:55 AM
Compare Lists Lemmesee Excel Discussion (Misc queries) 5 January 9th 07 03:15 AM
Compare Lists David Willey Excel Programming 3 August 8th 03 03:25 PM


All times are GMT +1. The time now is 09:33 AM.

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

About Us

"It's about Microsoft Excel"