energy_excel
New Member
- Joined
- Mar 6, 2023
- Messages
- 1
- Office Version
- 2016
- Platform
- Windows
Hi,
I'm got a column with 3k rows of data. Data in each cell is a string and in the following format:
name[40%], name2[20%], name3[5%], name4[60%]
but at times, those inputting the information forget to put a comma between names, so I get something like this:
name[40%], name2[20%]name3[5%], name4[60%]
I've gotten this far in my macro but can't figure out how to replace.....
If Range(a1).Value Like "*%][A-Z]*" Then ?????
how do i place the comma in between the closing bracket and the wildcard letter??
Thank you in advance!
I'm got a column with 3k rows of data. Data in each cell is a string and in the following format:
name[40%], name2[20%], name3[5%], name4[60%]
but at times, those inputting the information forget to put a comma between names, so I get something like this:
name[40%], name2[20%]name3[5%], name4[60%]
I've gotten this far in my macro but can't figure out how to replace.....
If Range(a1).Value Like "*%][A-Z]*" Then ?????
how do i place the comma in between the closing bracket and the wildcard letter??
Thank you in advance!