I have a new problem that I'm not sure how to deal with. I only have MS Excel Starter, so I can't use macros, and I don't understand VBA. If there's a formula solution that would be awesome.
I have the following string of text:
P2(BB) $50 - VP:53 PFR:39 AF:4.0 W:10|33 STL:69|63 3B:10|67 CB:62|87 N:-109.18 Hands:102
Sometimes the term "Hands:..." is listed. Sometimes it is not. When it is not listed then I want the data N:.... to be deleted. When it is listed then I want the data N:.... to show up.
Right now I have the following formula: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT(A5,FIND("N:",A5)-1),"P1","Villain "),"Me","Hero "),"P1","Villain ") (It mostly changes the names at the beginning of the text to Hero or Villain.
Another way to look at the problem is this: Whenever the string starts with "Me" then I want "N:-109.18" to be deleted. Whenever it starts with anything else I want it to stay. The N:xxxxxxxx can be any length. It will always be preceded and followed by a space. It is always in the same spot relative to the other data in the cell.
Thanks guys and gals!
Bookmarks