johnnyflex
New Member
- Joined
- May 11, 2018
- Messages
- 2
Hello to all!
I have a list of values in one cell.
The case :
5.1-5.28, 5.1-5.28, 9.5-10, 9.5-10
I want to extract the first value in one cell, second in another, third... you got it.
But sometimes I can have let's say :
5.1, 5.1-5.28,10, 9.5-10
In this case, the first and third value are "alone" between commas, without a "-" and another value before the comma.
For this set of data, I need to put :
The first number in the first cell
The second in the third cell
The third in the fourth cell
The fourth in the fifth cell
The fifth in the seventh cell
the sixth in the eight cell
Long story short :
If I have 2 value separated by a dash, they go in adjacent cells.
If I have only one, then I skip a cell.
I'm not sure I'm clear, but I tried multiple LEFT, MID, SUBSTITUTE without result.
I know how to do it for the first and last set of data in my cells but I'm stuck for the middle.
Any help will be greatly appreciated.
Thank you
I have a list of values in one cell.
The case :
5.1-5.28, 5.1-5.28, 9.5-10, 9.5-10
I want to extract the first value in one cell, second in another, third... you got it.
But sometimes I can have let's say :
5.1, 5.1-5.28,10, 9.5-10
In this case, the first and third value are "alone" between commas, without a "-" and another value before the comma.
For this set of data, I need to put :
The first number in the first cell
The second in the third cell
The third in the fourth cell
The fourth in the fifth cell
The fifth in the seventh cell
the sixth in the eight cell
Long story short :
If I have 2 value separated by a dash, they go in adjacent cells.
If I have only one, then I skip a cell.
I'm not sure I'm clear, but I tried multiple LEFT, MID, SUBSTITUTE without result.
I know how to do it for the first and last set of data in my cells but I'm stuck for the middle.
Any help will be greatly appreciated.
Thank you