I have a lot of lines in a data set that look something like this:
006MSP95228184
006ATL95228195
006ORD95485250
I don't care about anything but the 95228184, so I used the following function to rid myself of it:
=IF(LEFT(A1,3)="006",RIGHT(A1,8),"")
RESULT: 95228184 - excellent right?
However, this doesn't account for anomalies:
006DTW21214
006MCO
006816273172
etc....
I need a formula that will just give me the final 8 numbers at the back end while accounting for the anomalies.
I need the final 8 numbers, but if there isn't 8 numbers I don't want it, and if it has alphabet characters in it, I don't want that crap either. This is way above my head, so you Excel pros, I need you! Any help you can provide would be greatly appreciated.
Steve
006MSP95228184
006ATL95228195
006ORD95485250
I don't care about anything but the 95228184, so I used the following function to rid myself of it:
=IF(LEFT(A1,3)="006",RIGHT(A1,8),"")
RESULT: 95228184 - excellent right?
However, this doesn't account for anomalies:
006DTW21214
006MCO
006816273172
etc....
I need a formula that will just give me the final 8 numbers at the back end while accounting for the anomalies.
I need the final 8 numbers, but if there isn't 8 numbers I don't want it, and if it has alphabet characters in it, I don't want that crap either. This is way above my head, so you Excel pros, I need you! Any help you can provide would be greatly appreciated.
Steve