Hello everyone,
I have an excel problem for those clever enough to solve it. It has become quite a headache so I appreciate any insight in advance. I will keep this simple, but in reality my database is quite large so I need an efficient formula.
Spreadsheet 1 (three columns titled ID, Date, Value)
ID Date Value
ABC 11-Sept-2012 ?
Spreadsheet 2
ID Date Value
ABC 19/07/2012 2
ABC 10/10/2012 5
Okay so I need to do a vlookup (or some formula of the kind) of the Security ABC in Spreadsheet 1 against that in Spreadsheet 2. However I need the date (11-Sept-2012) to detect the 19/07/2012 entry and not 10/10/2012 (which is closest). Notice the difference between the two dates in Spreadsheet 2 is almost 3 months. So there are 90 days approx in this bloc, 45 days is the midpoint. What I originally tried was a vlookup of Spreadsheet 1, but deducting 45 days from 11-Sept-2012 which would give me 28-Jul-12 and hence return a value of 2. But unfortunately I couldn't get this to work or formulate it correctly, but I know this logic works.
Anyone know how to formulate this WITHOUT using macros/vba code?
Bookmarks