Hi,
I have a list of data with a mix of text, numbers and symbols in excel, such as:
'Quick Turn 15, 18, 20, 200
Dual Turn 20
8 Station, 8 Position
QT Nexus 150/200/250/300/350
SQT 200, 250
12 Station, 12 Position
QT Smart 150S / 300 / 350'
(note this is an example of what is contained in a single cell, not 7 consecutive cells)
I would like the ", " to be replaced with "/" between the numbers on the first line (e.g. '15/18/20/200')
however i dont want the ", " after 'station, ' to be replaced
I have this at the moment, but is there a shorter way, possibly using an 'any number' symbol.
I have a list of data with a mix of text, numbers and symbols in excel, such as:
'Quick Turn 15, 18, 20, 200
Dual Turn 20
8 Station, 8 Position
QT Nexus 150/200/250/300/350
SQT 200, 250
12 Station, 12 Position
QT Smart 150S / 300 / 350'
(note this is an example of what is contained in a single cell, not 7 consecutive cells)
I would like the ", " to be replaced with "/" between the numbers on the first line (e.g. '15/18/20/200')
however i dont want the ", " after 'station, ' to be replaced
I have this at the moment, but is there a shorter way, possibly using an 'any number' symbol.
Code:
Columns(1).Replace "0, ", "0/"
Columns(1).Replace "1, ", "1/"
Columns(1).Replace "2, ", "2/"
Columns(1).Replace "3, ", "3/"
Columns(1).Replace "4, ", "4/"
Columns(1).Replace "5, ", "5/"
Columns(1).Replace "6, ", "6/"
Columns(1).Replace "7, ", "7/"
Columns(1).Replace "8, ", "8/"
Columns(1).Replace "9, ", "9/"