Using INDEX(COLLECT()) or VLOOKUP
I have a data base that has part numbers listed multiple times based on production date. I am trying to gather the status (RED, GREEN, YELLOW) symbol from another column but I want to make sure it is from the most recent addition to the data base. New data is added via form to the top of the DB.
I believe VLOOKUP will return the value at the top of the sheet but I really like using INDEX(COLLECT()) to locate the info incase the column order ever changes but I don't know how to ensure it is the most recent data since the criterion (Part #) is listed multiple times.
Answers
-
Hi @ChrisUPC
I hope you're well and safe!
Do you already have the autonumbering column or/and the Created Date column included in the sheet?
Be safe, and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Yes. The "Created Date" Column is present.
-
Add column called 'Max' to your sheet:
=IF(MAX(COLLECT([Created Date]:[Created Date], [Part #]:[Part #], [Part #]@row)) = [Created Date]@row, 1, 0)
Then to get the latest status use the below:
=INDEX(COLLECT({reference to symbol},{reference to MAX column},@cell=1),1)
Change references and/or column names to match yours.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!