![]() |
#1
|
|||
|
|||
![]()
Hi all,
Ive attached a sample to "try" and explain what I am doing. Basically what I would like to achieve is to compare 2 spreadsheets within different workbooks which hold the same text within certain columns but different values in other columns and replace the data in say workbook 1 with whats in workbook 2. So based on the attached, workbook 1 has simular data in row 2 except for columns B and F (TEST 2 and TEST 6) how can I get the value from columns B and F based on the matching value of column A and place it into Book 1? Thanks!! |
#2
|
||||
|
||||
![]()
Assuming all the records in Book1 are found in Book2, you can do this with an array formula. For example, with both workbooks open, the following will update column B:
=INDEX([Book2.xlsx]Sheet1!$B1:$B10,MATCH(A2&C2&D2&E2,[Book2.xlsx]Sheet1!$A1:$A10&[Book2.xlsx]Sheet1!$C1:$C10&[Book2.xlsx]Sheet1!$D1:$D10&[Book2.xlsx]Sheet1!$E1:$E10,0)) For column F, change '$B1:$B10' to '$F1:$F10'. Also, assuming you have more than 10 rows, change all the 10s in the formulae to whatever is the maximum nuumber of rows in Book2.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to merge two columns & replace contents of cells conditionally? | mag | Excel | 3 | 10-24-2012 01:07 PM |
Range(Cell1,Cell2) Error on another workbook controlling some other workbook? | tinfanide | Excel Programming | 1 | 02-09-2012 04:08 PM |
![]() |
virsojour | Excel Programming | 5 | 02-01-2011 08:58 PM |
![]() |
nolesca | Excel | 4 | 06-07-2010 08:13 AM |
Is there a way to do this? (automatically enter text based on form data) | TIKKI555 | Word | 0 | 05-26-2010 09:21 AM |