Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Compare and Extract

Hi All,

I have a problem cmparing and extract data from 2 workbooks. The two
workbooks have only the item code in common. eg;

WorkBook1

A B C
1 ITEMCODE DES QTY
2 001 Pen 3
3 002 Book 4
4 B003 Notepad 4

WorkBook2

A B C
1 ITEMCODE SUPCODE PRICE
2 001 LOO1 $5
3 002 B4520 $1
4 B003 N0001 $4

As you can see only the item code is the same but all the information points
to the same information. Is it possible to firstly compare the information
and then extact data to different workbook.eg

WorkBook3

A B C D
1 ITEMCODE DES QTY PRICE
2 001 Pen 3 $5
3 002 Book 4 $1
4 B003 Notepad 4 $4

If anyone can help please do, thank alot all

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Compare and Extract

Enter in workbook3 A1
=[workbook1.xls]Sheet1!A1
and drag it to the right to C1 and down as required

Enter in workbook3 D1
=[workbook2.xls]Sheet1!$C1
and drag it down as required

It works only if the order of workbook1.xls and workbook2.xls is the same
like in the example!

Regards,
Stefi


€žNaba via OfficeKB.com€ť ezt Ă*rta:

Hi All,

I have a problem cmparing and extract data from 2 workbooks. The two
workbooks have only the item code in common. eg;

WorkBook1

A B C
1 ITEMCODE DES QTY
2 001 Pen 3
3 002 Book 4
4 B003 Notepad 4

WorkBook2

A B C
1 ITEMCODE SUPCODE PRICE
2 001 LOO1 $5
3 002 B4520 $1
4 B003 N0001 $4

As you can see only the item code is the same but all the information points
to the same information. Is it possible to firstly compare the information
and then extact data to different workbook.eg

WorkBook3

A B C D
1 ITEMCODE DES QTY PRICE
2 001 Pen 3 $5
3 002 Book 4 $1
4 B003 Notepad 4 $4

If anyone can help please do, thank alot all

--
Message posted via http://www.officekb.com


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Compare and Extract

Well, if the order of source workbooks is different, then
enter in workbook3 D2
=VLOOKUP(A2,[workbook2.xls]Sheet1!$A:$C,3,FALSE)
and drag it down as required

Regards,
Stefi

€žStefi€ť ezt Ă*rta:

Enter in workbook3 A1
=[workbook1.xls]Sheet1!A1
and drag it to the right to C1 and down as required

Enter in workbook3 D1
=[workbook2.xls]Sheet1!$C1
and drag it down as required

It works only if the order of workbook1.xls and workbook2.xls is the same
like in the example!

Regards,
Stefi


€žNaba via OfficeKB.com€ť ezt Ă*rta:

Hi All,

I have a problem cmparing and extract data from 2 workbooks. The two
workbooks have only the item code in common. eg;

WorkBook1

A B C
1 ITEMCODE DES QTY
2 001 Pen 3
3 002 Book 4
4 B003 Notepad 4

WorkBook2

A B C
1 ITEMCODE SUPCODE PRICE
2 001 LOO1 $5
3 002 B4520 $1
4 B003 N0001 $4

As you can see only the item code is the same but all the information points
to the same information. Is it possible to firstly compare the information
and then extact data to different workbook.eg

WorkBook3

A B C D
1 ITEMCODE DES QTY PRICE
2 001 Pen 3 $5
3 002 Book 4 $1
4 B003 Notepad 4 $4

If anyone can help please do, thank alot all

--
Message posted via http://www.officekb.com


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, extract new values trav Excel Discussion (Misc queries) 1 May 16th 06 04:22 PM
Help me, compare 2 sheet and extract the match data into the new sheet. sweetnet Excel Discussion (Misc queries) 1 February 22nd 06 07:49 PM
Compare and match names and extract a cell content dexsourcesys Excel Worksheet Functions 1 January 19th 06 07:51 PM
Compare 2 Sheets and Extract Unique Info to a 3rd Sheet kilo1990 Excel Discussion (Misc queries) 7 December 19th 05 10:36 PM
Compare two spreadsheets to find differences. Toby Excel Discussion (Misc queries) 1 March 29th 05 01:19 AM


All times are GMT +1. The time now is 08:51 PM.

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"