I have two columns of about 4,000 cells of data each. I need to format each column in a similar way.
Column 1: Scenerio 1: Each cell has data that begins with "qwe". If there is a "bc" after the "qwe", I need to trim off all 5 characters.
Scenerio 2: Each cell has data that begins with "qwe". If there is NOT a "bc" after the "qwe", I need to trim off ONLY the first 3 characters ("qwe") and the final character of the data string. (This would be the last character at LENGTH of the data string)
Column 2: Scenerio: I need to trim off the first three characters of each string in each cell.
For the first column, I have absolutely no idea how to check if the 4th and 5th characters are "bc" and then branch into the appropriate action.
For the second column, I was just going to call MID(CELL,3,LENGTH_OF_STRING_IN_CURRENT_CELL). However, I cant figure out how to call the length of the data in the cell from within a function.
All help is appreciated. I don't know anything about VB macros and I only (obviously) know a little about Excel functions.