Using Index/Match to display multiple values in a cell
Hi there,
I have two sheets and I am trying to use Index/Match to pull multiples values in a cell in Sheet 1, into another cell in Sheet 2. I'm using the following formula, but I'm only getting the first item in the Sheet 1 cell to display. Here's my formula:
=INDEX({01 - Product Grouping}, MATCH([Product Name]@row, {01 - Current Product Name}, 0))
Sheet 1 - Reference Sheet
Sheet 2 - Destination Sheet
So my expectation is to get the contains in the first cell (Brand Name/Previous Name) to display the values from the corresponding cell in Sheet 1: OSIsoft Cloud Service (OCS), Pi System, Wonderware.
The formula is automatically doing this in Sheet 2-Product Manager, but those are using contact fields. The Brand Name field is a drop down list. Any ideas?
I tried using the JOIN/Collect formula but I cannot get it to work.
Thanks!
Answers
-
Actually, on a closer look, it looks like the columns are actually populating correctly! I guess my only question is how do I get Smartsheet to add punctuation to separate the populated content?
E.g., it's printing: OSIsoft Cloud Service (OCS) PI System Wonderware
Ideally I want it to print: OSIsoft Cloud Service (OCS), PI System, Wonderware (<--- Add commas here or something to differentiate values)
-
Hi @Pops1988
I hope you're well and safe!
You would need to use he JOIN COLLECT combination so you can add a delimiter.
Can you paste the formula you've tested for the JOIN COLLECT?
I hope that helps!
Be safe, and have a fantastic week!
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.
-
Right now there is a line break delimiter because it is coming from a multi-select dropdown. If you use the wrap text feature on the destination cell, each piece should be on its own "row" within the cell.
To swap the line breaks out for commas, you would need to use a SUBSTITUTE function.
=SUBSTITUTE(index_match, CHAR(10), ", ")
-
Ah, of course, substitute CHAR(10). Didn't think of that.
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.
-
@Andrée Starå Yeah. I initially thought JOIN/COLLECT as well, but since the the values are listed in a multi-select and there could be multiple entries in the cell being pulled, that CHAR(10) is already going to have to be swapped out anyway. Then the first comment from the OP indicated the data was pulling over correctly but that they just wanted a different delimiter.
-
Yes, it's a great solution, and I didn't think of it because I've never used it that way.
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!