Results 1 to 1 of 1
Thread: PARSE (Excel2000>)
2004-11-22, 05:20 #1
- Join Date
- Feb 2004
- Cape Town, RSA
- Thanked 1 Time in 1 Post
I found a PARSE option while I was fooling around in Excel the other day. The feature is similar to the Text-To-Columns feature but is rather fixed in it's operation. It is not as flexible as Text-To-Columns as is does not work via delimiter specification. There may be use for it though as its arguments are quite easy and can be modified to suite the needs of the spreadsheet! It is better suited to split up fixed width data like codes or phone numbers, etc.
The sample below will split a code like S12-34 into 4 columns.
Col_A = S, Col_B = 12, Col_C = "Blank", Col_D = 34. (The hyphen is dropped as it is not in square brackets!)
ParseLine:="[x][xx]-[ ][xx]", _
A dialog can also be activated for the user to specify how to break up the data.
This activates a dialog that allows the user to type in the square brackets around the code as they see fit to split it up! (PS > the user can only type square brackets ( [ ] ) into this dialog. It does not accept any other characters.
Thought I'd share this info to whoever finds it useful. (I assume it does come from the older versions of excel though, but could still be useful!)Regards,