I have to sort lot of expiry dates , by the oldest one form 6 workbooks.
Problem is on the same code in one or more sheets i have multiple values, so i cant use value lookup.
At the moment i link directly every cell, but if someone adds rows everything will go wrong.
Example
Workbook 1
Code . amount . expiry date . days to expire . amout . expiry date . days to expire . amout . expiry date . days to expire
391 . 10 . 25-05-14 . 31 . 50 . 26-05-14 . 32 . 100 . 28-05-14 . 34
391 . 15 . 25-09-14 . 61 . 60 . 29-05-14 . 39 . 600 . 01-06-14 . . 72
391 . 25 . 15-09-14 . 61 . 55 . 19-05-14 . 39 . 622 . 01-09-14 . 72
392 . 20 . 01-08-14 . 31 . 70 . 30-05-14 . 38 . 650 . 02-06-14 . 55
393 . 20 . 01-08-14 . 31 . 70 . 30-05-14 . 38 . 650 . 02-06-14 . 55
Problem is in this example code 391, sometimes i have 7-8 rows of same code, and valuelookup cant help, also i need to match code
if someone inserts rows i dont do it all again.
Where I hawe one row, i can do value lookup to main workbook to sort all data for one code to colms like
code amout exp days
amout exp days
amout exp days
and then with pivot sort them by the worksheet and oldest date like :
code
workbook1
amout exp days (oldest date from workbook 1 for that code)
amout exp days (next oldest date)
amout exp days
amout exp days
workbook2
amout exp days(oldest date from workbook 2 for that code)
amout exp days
amout exp days
I just entered few rows, but i have about 10-15 codes that i need to sort
I can attach some tables if needed if you cant understand my problem.
Maybe I should use some macros or something ??
Bookmarks