Forum Discussion
LisaMarie1981
Feb 13, 2024Brass Contributor
If column has a word within it pull the name in another column
Hi there, I have the below in a ss in columns A,B,C respectively. In another tab I want to have the column heading be a city. ie. Windsor. and I want to pull the first and last names of anyone who s...
- Feb 20, 2024
The file you sent is my first suggestion where all data must be entered. Attached is the file with the changed M code which accepts rows without a city. I changed the name of the file from "If column has a word within it pull the name in another column" to "CHANGED If column has a word within it pull the name in another column" for easier identification.
OliverScheurich
Feb 13, 2024Gold Contributor
=IF(ISNUMBER(SEARCH(E$1,$C2)),$A2&" "&$B2,"")
This could be a simple solution if you create the column headings with the help of text to columns and remove duplicates and transpose. The formula is in cell E2 and filled across range E2:J5 in the example. For illustration the tables are in the same spreadsheet.