Hi, I have some data that has imported from a finance system in a dreadful format that is inconsistent from one record to another and I'm after some guidance on how to extract the data that I need from each please. Tried MID, LEN, RIGHT, LEFT and many combos of all of those but I can't get it right...
For example, here is the data record (I have +2000 records like this, all different):
[TABLE="width: 500"]
<tbody>[TR]
[TD]0.14, LASTNAME FIRSTNAME, W/E 09/04/2017, ITU, 23.00 HRS, 17003967
What I would like to do is extract the following data, but I am finding it difficult because of the differing lengths:
- The name of the person
- the date (minus the "w/e" leading text)
- the department (as in the above example it is ITU, but could be anything)
- the number of hours (these could be from 1 to 5 digits long, but most (not all) records do contain the "HRS" designation)
It's almost like I need a formula to look at the data between each "," - but I have no idea how to.
Is there anything I can do to also remove the leading "X.XX" (0.14 above) and also the trailing "XXXXXXXX" (17003967 above) from each record?
Thanks so much in advance,
Best regards
Rob
[/TD]
[/TR]
</tbody>[/TABLE]
For example, here is the data record (I have +2000 records like this, all different):
[TABLE="width: 500"]
<tbody>[TR]
[TD]0.14, LASTNAME FIRSTNAME, W/E 09/04/2017, ITU, 23.00 HRS, 17003967
What I would like to do is extract the following data, but I am finding it difficult because of the differing lengths:
- The name of the person
- the date (minus the "w/e" leading text)
- the department (as in the above example it is ITU, but could be anything)
- the number of hours (these could be from 1 to 5 digits long, but most (not all) records do contain the "HRS" designation)
It's almost like I need a formula to look at the data between each "," - but I have no idea how to.
Is there anything I can do to also remove the leading "X.XX" (0.14 above) and also the trailing "XXXXXXXX" (17003967 above) from each record?
Thanks so much in advance,
Best regards
Rob
[/TD]
[/TR]
</tbody>[/TABLE]