I have a complex if statement I need to make and I am not sure how to do it.
This is the data I have:
AN3345
AN1348
DP3457.
I need to insert a line when it changes from AN to something else.
I was doing a loop to check if carlineold = carlineold, but thats not going to work because as you can see they are not equal.
Then I thought about using the Left function to grab the 2 characters, however I have a problem that I have a couple of times where it will be three characters not jsut the two.
Any suggestions?
This is the data I have:
AN3345
AN1348
DP3457.
I need to insert a line when it changes from AN to something else.
I was doing a loop to check if carlineold = carlineold, but thats not going to work because as you can see they are not equal.
Then I thought about using the Left function to grab the 2 characters, however I have a problem that I have a couple of times where it will be three characters not jsut the two.
Any suggestions?