Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I separate a string into alpha and numeric parts?

Status
Not open for further replies.

bigcat

Technical User
Aug 25, 2000
2
US
I have lists like the following and need to separate the strings into the alpha and numeric components in separate fields. Any help will be much appreciated.

Thanks

ORIGINAL FLD1 FLD2
FCV1031 FCV 1031
FCV1033 FCV 1033
 
Looking at your example, you could use left$(Original,3) and right(Original,4) to split it up. If you don't know how many alpha characters there are, you could use the val() function to look at the value of each character. If the value is zero and the character <> &quot;0&quot; then it's a letter.

Hope this helps a bit.

Fyrewall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top