keith05281967
Board Regular
- Joined
- May 6, 2011
- Messages
- 68
Greetings,
I have cells with data like this: "Houston TX" or "Phoenix AZ" but occasionally it comes in like "AustinTX" with no spacing.
In order to pass the database test these cells should have at least 3 spaces between city and the 2 digit state. I think i can make this work if I can start from the right of the cell, then move 2 spaces just to the left of the 2 digit XX state abbv. then going right to left count the number of spaces. If < 3 spaces then add 3 spaces.
Can this be done?
Excel '07
thanks,
Keith
I have cells with data like this: "Houston TX" or "Phoenix AZ" but occasionally it comes in like "AustinTX" with no spacing.
In order to pass the database test these cells should have at least 3 spaces between city and the 2 digit state. I think i can make this work if I can start from the right of the cell, then move 2 spaces just to the left of the 2 digit XX state abbv. then going right to left count the number of spaces. If < 3 spaces then add 3 spaces.
Can this be done?
Excel '07
thanks,
Keith