How can I use a VLOOKUP/INDEX to retrieve a rate based on a distribution center ID and a date?
I currentlyy have two different sheets, one in which I have my distribution center references for their ID, the start date column and end date column to set a range for a specific rate. Therefore, I can have the same ID repeatedly but with date ranges that do not overlap and a rate for each date range and ID.
In another sheet I have a shipment ID, the date that the shipment was shipped and also the distribution center ID.
I want to retrieve the Rate, first to search for the ID and then to retrieve the correct rate based on the dates.
The formula I was using was first looking at the date and then at the distribution center ID, am I on the right track?
=IF(AND([Execution Date]@row >= {Start Date Range CpL}, [Execution Date]@row <= {End Date Range CpL}), VLOOKUP([Servicing RDC (If shuttled)]@row, {Cost Per Load Range 1}, 6, false), "No Rate Found")
Answers
-
You are going to need an INDEX/COLLECT and a helper column. Are you able to provide screenshots for context?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!