FireGeek21
Technical User
I have 2 Excel files and I need to move some data from one file to the other based on a value and other conditions. I have done vlookups and if formulas before but I believe this will entail more - maybe a macro.
In my main file, I have a column with values I need to match with the first column in a data table (sample pictured below). Then, if a date in my main file is in the date range of the next two columns, then return the data in the 4th column to the main table. So, for my example, for A I want 789 and for B I want 123 into the 3rd column of the main table. HOW???
Main Table
A 03/15/2012
B 04/02/2010
Data Table
A 01/01/2010 06/30/2011 123
A 07/01/2011 12/31/2011 456
A 01/01/2012 08/31/2012 789
A 09/01/2012 12/31/2013 001
B 01/01/2010 06/30/2011 123
B 07/01/2011 12/31/2011 456
B 01/01/2012 08/31/2012 789
B 09/01/2012 12/31/2013 001
So, long formula? Macro? HOW??? THANKS!!!
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
In my main file, I have a column with values I need to match with the first column in a data table (sample pictured below). Then, if a date in my main file is in the date range of the next two columns, then return the data in the 4th column to the main table. So, for my example, for A I want 789 and for B I want 123 into the 3rd column of the main table. HOW???
Main Table
A 03/15/2012
B 04/02/2010
Data Table
A 01/01/2010 06/30/2011 123
A 07/01/2011 12/31/2011 456
A 01/01/2012 08/31/2012 789
A 09/01/2012 12/31/2013 001
B 01/01/2010 06/30/2011 123
B 07/01/2011 12/31/2011 456
B 01/01/2012 08/31/2012 789
B 09/01/2012 12/31/2013 001
So, long formula? Macro? HOW??? THANKS!!!
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)