Hi all
I need some help with splitting a text string as the text to columns function doesn't quite cut it with this particular set of text strings.
What we have is a list which contains
Reference, Name, Date, value, vat, total.
all seperated by spaces. The issues i have is that some of the names are single, some have 2 names, 3 names etc.
I want to split it so i can have a column for:
Reference
Name
Date
Value
Vat
Total
Here is an example of the text string:
1234567 John Smith 18/02/2013 100.00 20.00 120.00
1235678 Amy Jane Brown 17/01/2012 200.00 40.00 240.00
2345678 Thomas James Alex Watson 16/01/2012 1020.00 204.00 1224.00
3456798 Alan Jones 01/05/2012 2040.00 408.00 2448.00
The following are constant:
the first number is always 7 digits long,
the date is always in format dd/mm/yyyy
Other than that, the number of names varies, and the values vary. Just to be clear, for the above example i would want it to look like this:
<TBODY>
</TBODY>
Many Thanks
I need some help with splitting a text string as the text to columns function doesn't quite cut it with this particular set of text strings.
What we have is a list which contains
Reference, Name, Date, value, vat, total.
all seperated by spaces. The issues i have is that some of the names are single, some have 2 names, 3 names etc.
I want to split it so i can have a column for:
Reference
Name
Date
Value
Vat
Total
Here is an example of the text string:
1234567 John Smith 18/02/2013 100.00 20.00 120.00
1235678 Amy Jane Brown 17/01/2012 200.00 40.00 240.00
2345678 Thomas James Alex Watson 16/01/2012 1020.00 204.00 1224.00
3456798 Alan Jones 01/05/2012 2040.00 408.00 2448.00
The following are constant:
the first number is always 7 digits long,
the date is always in format dd/mm/yyyy
Other than that, the number of names varies, and the values vary. Just to be clear, for the above example i would want it to look like this:
1234567 | John Smith | 18/02/2013 | 100.00 | 20.00 | 120.00 |
1235678 | Amy Jane Brown | 17/01/2012 | 200.00 | 40.00 | 240.00 |
2345678 | Thomas James Alex Watson | 16/01/2012 | 1020.00 | 204.00 | 1224.00 |
3456798 | Alan Jones | 01/05/2012 | 2040.00 | 408.00 | 2448.00 |
<TBODY>
</TBODY>
Many Thanks