salman350z
New Member
- Joined
- Oct 28, 2014
- Messages
- 3
Hi,
I have one column with 938 rows in Excel 2010. The vast majority(90%) of cells look like: " 2 B/W GGG". I want to use VBA to separate the "2", which is a quantity, "B/W", which is a type of cut, and "GGG", which is detail, and place these values in separate columns(2-4) as needed.
The problem is, not all of the data is consistent. For example, 90% of the cells looks like the previous example, while others look like: "Solid", or "Solid BBB B/W".
For the cells containing "solid", I would leave it under type of cut, and for the cells containing " Solid BBB B/W", I would split them into type of cut and details.
Any help would be greatly appreciated, I am new to VBA.
I have one column with 938 rows in Excel 2010. The vast majority(90%) of cells look like: " 2 B/W GGG". I want to use VBA to separate the "2", which is a quantity, "B/W", which is a type of cut, and "GGG", which is detail, and place these values in separate columns(2-4) as needed.
The problem is, not all of the data is consistent. For example, 90% of the cells looks like the previous example, while others look like: "Solid", or "Solid BBB B/W".
For the cells containing "solid", I would leave it under type of cut, and for the cells containing " Solid BBB B/W", I would split them into type of cut and details.
Any help would be greatly appreciated, I am new to VBA.