jjobrien03
New Member
- Joined
- Sep 2, 2014
- Messages
- 41
I have a 5,000 strings formatted as such: (in one cell)
0 0 0 0 0 0 0 12 12 12 12 12 15 15 15 15 18 18 25 25 25 25 25 25 25 100 100 100 100 100 100 100 100
These strings may be as long as 300 unique numbers with spaces in between each number. What I want to do is convert each string to the following format:
0 for 7, 12 for 5, 15 for 4, 18 for 2, 25 for 7, 100
Keeping in mind that both the numbers in between spaces and number of occurrences will be different for each string.
Appreciate any help, am familiar enough with VBA to use that as a solution as well.
0 0 0 0 0 0 0 12 12 12 12 12 15 15 15 15 18 18 25 25 25 25 25 25 25 100 100 100 100 100 100 100 100
These strings may be as long as 300 unique numbers with spaces in between each number. What I want to do is convert each string to the following format:
0 for 7, 12 for 5, 15 for 4, 18 for 2, 25 for 7, 100
Keeping in mind that both the numbers in between spaces and number of occurrences will be different for each string.
Appreciate any help, am familiar enough with VBA to use that as a solution as well.