Lookup multiple values in a single cell (separated by commas) and then return the values to a single cell (also comma separated)

onlyforsubu

New Member
Joined
May 15, 2016
Messages
1
Purple! Pink! Gold! Nude! Orange! Yellow! Brown
Ivory! Black! Green! Silver! Purple! Pink! Nude
Purple! Pink! Gold! Nude! Orange! Yellow! Brown

<tbody>
</tbody>

Above are values & we have another sheet of categories. In categories there are numbers like below

Red17
White18
Ivory82
Blue19
Black20
Green24
Silver21
Purple23
Pink22
Gold25
Nude81
Orange83
Yellow90
Brown91

<tbody>
</tbody>

We want above colors in numbers like

17,22,25........ etc. in same cell

Can someone help me please ????
 

J.Ty.

Well-known Member
Joined
Feb 4, 2012
Messages
821
Office Version
365, 2016, 2010
Platform
Windows, Web
Hi,

Welcome to MrExcel Forum!

To be honest, the idea of storing multiple pieces of information in a single cell is unfortunate. Sooner or later it causes problems, which you are now experiencing: your task is quite easy when the color names are located in spearate cells, and difficult otherwise. Many other problmes may surface later.

What is the reason for keeping all the names together?


J.Ty.
 

Forum statistics

Threads
1,081,456
Messages
5,358,789
Members
400,513
Latest member
sdrowsick

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top