Hi, can anyone please help me with this problem? It has been driving me crazy for days!
I have a column with data in the following (ideal) format:
texttextexttext/s2
texttextexttext/s2/c14
texttextexttext/s24/c2
and need a VBA solution to automatically split it across 3 columns, i.e
column1 column1 column1
texttextexttext s2
texttextexttext s2 c14
texttextexttext s24 c2
/s will always be present and will always be followed by one or more digits (no limit).
/c may or may not be present but if it is present, again it will always be followed by one or more digits (no limit)
I have been using TextToColumns with "/" as the delimiter and it works fine in most cases. However, the data frequently contains additional "/" characters which breaks everything. some examples of valid but problematic data are:
texttext3/12/2012text/s2/c2
text/textexttext/s2/c2
and even:
text/stext/ctext/s2/c2 (i.e. multiple occurrences of /s or /c)!!!
Please help!
Thanks,
Graham
I have a column with data in the following (ideal) format:
texttextexttext/s2
texttextexttext/s2/c14
texttextexttext/s24/c2
and need a VBA solution to automatically split it across 3 columns, i.e
column1 column1 column1
texttextexttext s2
texttextexttext s2 c14
texttextexttext s24 c2
/s will always be present and will always be followed by one or more digits (no limit).
/c may or may not be present but if it is present, again it will always be followed by one or more digits (no limit)
I have been using TextToColumns with "/" as the delimiter and it works fine in most cases. However, the data frequently contains additional "/" characters which breaks everything. some examples of valid but problematic data are:
texttext3/12/2012text/s2/c2
text/textexttext/s2/c2
and even:
text/stext/ctext/s2/c2 (i.e. multiple occurrences of /s or /c)!!!
Please help!
Thanks,
Graham