I have a variable which may or may not contain a , (comma).
If it does contain a comma it will always be in the centre of the two parts (without spaces)
I would like to do the following:
so if the starting value is
W1,Mayfair
I would want this split into two new variables
W1 and Mayfair
If it does contain a comma it will always be in the centre of the two parts (without spaces)
I would like to do the following:
Code:
If Variable contains "," Then
Split variable into two parts
Before comma is NewVar1
After comma is NewVar2
End if
so if the starting value is
W1,Mayfair
I would want this split into two new variables
W1 and Mayfair