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
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!