This a sample of the data that I have entered into Column A after opening an output from a third party program.
<tbody>
</tbody>
I would like to be able to run a macro so that it changes to this:
<tbody>
</tbody>
The individual changes that need to be made are:
- removing the first string and it's ending space
- removing ".smi_0"
- inserting 3 cells to the right of the first one
- using the '_' as an indication to move data to the next column over
- making sure no underscores are left
- replace any '-' with a space
Please note that the first string of characters and the following drug name do not all have an equal number of characters.
How I've been doing it so far:
- Find and replace ' ' with '_'
- Find and delete '.smi_0'
- Replace '_' with ','
- Copy and paste data to a text file
- Save as .csv
- Insert new cells into my spreadsheet
- Clear the cells with the existing data
- Open and copy the .csv data back into my spreadsheet
- Find and replace '-' with ' '
You can see why I need help!!!
Thanks
<tbody> </tbody> |
<tbody>
</tbody>
I would like to be able to run a macro so that it changes to this:
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | ||||
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | ||||
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | ||||
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | ||||
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | ||||
<colgroup><col width="101"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<tbody>
</tbody>
The individual changes that need to be made are:
- removing the first string and it's ending space
- removing ".smi_0"
- inserting 3 cells to the right of the first one
- using the '_' as an indication to move data to the next column over
- making sure no underscores are left
- replace any '-' with a space
Please note that the first string of characters and the following drug name do not all have an equal number of characters.
How I've been doing it so far:
- Find and replace ' ' with '_'
- Find and delete '.smi_0'
- Replace '_' with ','
- Copy and paste data to a text file
- Save as .csv
- Insert new cells into my spreadsheet
- Clear the cells with the existing data
- Open and copy the .csv data back into my spreadsheet
- Find and replace '-' with ' '
You can see why I need help!!!
Thanks