I tried to find the Inv Cost. I used vlookup to used it. Please refer below image for more details.
As you can see from the sheet1 I'm taking Actual finish date and product number to compare from sheet2 product number & cost date.
The excel formul find the exact date and number display on Inv Cost column. If can't find, Inv Cost should display the nearest date in the range of dates in excel sheet.
But my excel vlookup formul show N/A. my excel formula is below:
=VLOOKUP(B2&A2,Sheet2!C:D,2,FALSE)
Please advise on this.Thanks.
For these cases where you have to find the next or previous closest result I preffer, and I think it's the most suitable, using INDEX/MATCH
.
The formula would be like this.... try it...
=INDEX('Sheet2'!D2:D5;MATCH(CONCATENATE(B2;A2);'Sheet2'!C2:C5;-1))
Write this formula on sheet1 and scroll down, let me know if it works or not :D
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.