Formula to lookup a value based on start and end date

Hi All,
I need your support on this case.
I have a project to improve the current sales report layout and I need to extract the Vendor Support data for each item depend on the sales records, and the start and end date for this vendor support.
Here is an example:
Below is the table where I want to have the formula to collect the support for each sales record.
Below is the vendor support table (Note items may be duplicate for example we might have a support for Item A between Jan and Feb, and also we might have another support for Item A between June and July)
Answers
-
You would use somethign along the lines of:
=INDEX(COLLECT({Support}, {Item Code}, @cell = [item_code]@row, {Start Date}, @cell = MAX(COLLECT({Start Date}, {Start Date}, @cell <= Date@row))), 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 515 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!