VLOOKUP with multiple returns
I have two dropdown columns, building and building code. I want to select a building and have the building code auto-populated referencing to another sheet. I used a simple VLOOKUP [=VLOOKUP(Building@row, {Buildings and Infrastructure Range 1}, 2, true)] and it works when I select one building. However, it only returns one building code when multiple buildings are selected.
I am wondering if there is a way to return multiple building codes when multiple buildings are selected.
Thanks!
Answers
-
You would need to use a JOIN/COLLECT instead.
-
Hiya! I agree with Paul.
If you need an example structure, this article explains a JOIN(COLLECT combination, under the heading, "Gather all matching content into one cell": Formula combinations for cross sheet references
Note that your delimiter should be CHAR(10) in this instance, which is a line break or a separator between multi-select values.
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 478 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!