Hi everyone,
I'm looking for a way to parse data in a spreadsheet via as automated a method as possible to save manually wading through cell after cell in multiple workbooks.
The data is imported with several values to a cell and what I would like to do is be able to select a range of cells and then parse them so that only one value per cell is left.
I've figured out via guides online how to use the LEFT and FIND functions to be able to complete part of my parse, but in doing so to another cell rather than replacing the previous data. I've no idea how to take this forwards and turn a simple formula into a VBA solution however.
What I'd like to be able to do is parse the cells and leave the results in each cell, a kind of parse and replace function if you will.
I've attached a simple workbook that shows the source data and also shows beneath the two types of results I'd like to try and achieve.
1. Being able to parse the data to leave only the % values present (in the same cell)
2. Being able to the parse data to leave only the values in the () present (in the same cell)
Could somebody point me in the right direction please. What I'm hoping to be able to do ultimately is tie the macro to a button in the ribbon (Excel 2010 user) so I can select a range of cells, click on the macro and it then runs through each cell and parses by either method 1 or method 2 depending on which results I'd prefer to see. So 2 macros, 2 buttons, one for each I was thinking.
Obviously, if there's a better way (I've been using Excel for years but am new to VBA) please do point me in the right direction.
Many thanks for any assistance you can offer.
Bookmarks