UndwaterExcelWeaver
New Member
- Joined
- Mar 2, 2019
- Messages
- 38
- Office Version
- 365
- Platform
- Windows
I am using the formula below to try and extract data from another workbook. It works fine until there is a date with no associated values. In the formula, "D1" is the destination sheet's date, and column B is the date column in the source sheet. Column J is the data I want to extract. For example, when I am looking for February 14th, it correctly finds and inserts the data associated with the 14th. There is no data associated with the 15th. However, when I run the formula in the destination sheet with the 15th as the date, it continues to pull in the data from 14th because it can't find anything for the 15th. I need the destination sheet to return no value if there is no value for that date in the source sheet.
I believe I need to use Vlookup instead of lookup so it only looks for the exact date, but I cannot figure this out so it works. I am always getting errors when trying this setup. Please help.
=LOOKUP(D1,'[Source.xlsx]sheet'!$B:$B,'[Destination.xlsx]sheet'!$J:$J)
I believe I need to use Vlookup instead of lookup so it only looks for the exact date, but I cannot figure this out so it works. I am always getting errors when trying this setup. Please help.
=LOOKUP(D1,'[Source.xlsx]sheet'!$B:$B,'[Destination.xlsx]sheet'!$J:$J)