3
1
In Excel 2016, I am trying to write either an array formula or a vba function to complete the following:
1.) User enters a string (a Project Name) into a cell (Cell D1 in attached example)
2.) Cells in Column B will fill in with the number(s) associated with the Project Name string based on the contents of Column A each separated by commas
Column A contains some number of comma delimited entries. Each entry contains a Project Name and an associated Number separated by a %
character
For example, the first row in the example image contains three entries:
Project1 1234
Project2 2345
Project3 5678
This is entered as "Project1%1234,Project2%2345,Project3%5678" in the cell
I have attached an example image that contains a blank version of my problem and below that is what the desired result would be if the user entered Project1
. I hope this illustrates the problem well but if not I can clarify.
Is this possible to accomplish with an array formula or will this require a user defined function in vba?
This is a great alternative to
Regex
– Gary's Student – 2018-06-19T10:46:54.473