Hi,
I'm trying to manipulate a string of up to 40 characters in length which is basically a free-form entry although there are some basic 'standards' for data entry.
I have the feeling I'm missing something very simple, but I want to be able to identify the first alpha character (i.e. A-Z only) in the string after a specific sequence of characters - which may or may not be there.
I can use a combination of IF, SEARCH, MID and REPLACE to get to approximately where the first character should be, but there is an added complication that it might be a hyphen, with or without a space before and after it. I can use additional logic to search for and omit the hyphen and spaces, but it's getting very complicated!
So, is there a simple means of merely testing for the first alpha character from a known point in a string?
Many thanks.
rb
I'm trying to manipulate a string of up to 40 characters in length which is basically a free-form entry although there are some basic 'standards' for data entry.
I have the feeling I'm missing something very simple, but I want to be able to identify the first alpha character (i.e. A-Z only) in the string after a specific sequence of characters - which may or may not be there.
I can use a combination of IF, SEARCH, MID and REPLACE to get to approximately where the first character should be, but there is an added complication that it might be a hyphen, with or without a space before and after it. I can use additional logic to search for and omit the hyphen and spaces, but it's getting very complicated!
So, is there a simple means of merely testing for the first alpha character from a known point in a string?
Many thanks.
rb