how do i sort 2 colums so that the same values line up

  • Thread starter Thread starter odi et amo
  • Start date Start date
O

odi et amo

I've got 2 worksheets with lists of products, the 1st colum on each sheet
contains the productcodes. These lists are not exactly the same, list one is
much longer than the other, but all codes in list 2 are in list 1. I now want
to have 1 list with the data from both worksheets. I want the codes from list
2 to line up on the same row with the matching code from list 1. Both lists
have several colums with additional info about the product and this info has
to move aswell.
 
Index n Match is one way to get it done

Assume you want to update Sheet1 (your master)
with data from Sheet2's cols B to D
where the key match col = col A (product codes) in both Sheet1/2

In Sheet1,
You've got existing data in cols A to D,
with key col = col A (product codes)

Place in say, E2
=IF(ISNA(MATCH($A2,Sheet2!$A:$A,0)),"",INDEX(Sheet2!B:B,MATCH($A2,Sheet2!$A:$A,0)))
Copy E2 across to G2, fill down to extract data from Sheet2's cols B to D
based on matching with the product codes in col A. Unmatched codes, if any,
will return blanks: "".
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
 
Back
Top