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
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!