I have a formula that looks to a cell and changes it. Part of the formula simply looks for "-" and takes off the spaces on either side and shrinks it so "47 - Left" becomes "47L". The big part of the formula changes names like "Cerebelum_4_5 - Right" to "Cer4,5R". Because the names are all different and the order in which I get the data changes every time I cant just assign a name to a helper column. I have to look where the name is in the column this time then change it.
The last part of the formula works great for all the number and letter names like "1 - Left"
for the ones with long names I have to write an IF statement for each name and there are 37 so I have 37 nested IF statements. It all works but I would like to see if there is a better way to do it.
Here is the formula
Ill upload an example. In the example the formula is in B1 and dragged down to the end. The data is in D1 - Again the order of the data changes every time get new data.
Bookmarks