PROBLEM
I need to extract the Length and the Width (to do some calculations) of each product that comes through my system.
ANALYSIS
The data is held in one Excel cell and looks like this :-
(various lengths of data) – L1111m, W222mm, T33um – (other various lengths data)
or (various lengths of data) – L1m, W2222mm, T333um – (other various lengths data)
or (various lengths of data) – L11m, W2mm, T3333um – (other various lengths data)
or (various lengths of data) – L111m, W22mm, T3um – (other various lengths data)
EXAMPLES
1. Part 768/, - num 34sd23 - L5000m, W63mm, T7um, zxcv
2. Num345 /rt5, - London dfg87 - 4other4 - L250m, W1020mm, T341um, other data
In example 1, I want to end up with ‘5000’ and ‘63’ as numbers.
In example 2, I want to end up with ‘250’ and ‘1020’ as numbers.
POINTS
It’s always Length then Width (then Thickness)
The Length always starts with ‘space dash space L’ and ends with ‘m comma space W’
The Width always starts with ‘m comma space W’ and ends with ‘mm comma space T’
The Length Width (and Thickness) are usually at the very end of the data.
PROBLEMS
I’m having real problems defining the start and endpoint of the Length and Width values because of their variable positions and lengths.
I’ve tried using various combinations of ‘FIND‘, SEARCH’, ‘RIGHT‘, ‘MID‘, ‘LEFT‘, & ‘LEN‘ (and ‘HocusPocus‘ !) but I end up being totally confused and bewildered.
I regard myself as OK with Excel. I have created some complex formulas and I have helped others with their various Excel problems but this is absolutely frightful!
I would be very grateful for some help, thank you, Mike
I need to extract the Length and the Width (to do some calculations) of each product that comes through my system.
ANALYSIS
The data is held in one Excel cell and looks like this :-
(various lengths of data) – L1111m, W222mm, T33um – (other various lengths data)
or (various lengths of data) – L1m, W2222mm, T333um – (other various lengths data)
or (various lengths of data) – L11m, W2mm, T3333um – (other various lengths data)
or (various lengths of data) – L111m, W22mm, T3um – (other various lengths data)
EXAMPLES
1. Part 768/, - num 34sd23 - L5000m, W63mm, T7um, zxcv
2. Num345 /rt5, - London dfg87 - 4other4 - L250m, W1020mm, T341um, other data
In example 1, I want to end up with ‘5000’ and ‘63’ as numbers.
In example 2, I want to end up with ‘250’ and ‘1020’ as numbers.
POINTS
It’s always Length then Width (then Thickness)
The Length always starts with ‘space dash space L’ and ends with ‘m comma space W’
The Width always starts with ‘m comma space W’ and ends with ‘mm comma space T’
The Length Width (and Thickness) are usually at the very end of the data.
PROBLEMS
I’m having real problems defining the start and endpoint of the Length and Width values because of their variable positions and lengths.
I’ve tried using various combinations of ‘FIND‘, SEARCH’, ‘RIGHT‘, ‘MID‘, ‘LEFT‘, & ‘LEN‘ (and ‘HocusPocus‘ !) but I end up being totally confused and bewildered.
I regard myself as OK with Excel. I have created some complex formulas and I have helped others with their various Excel problems but this is absolutely frightful!
I would be very grateful for some help, thank you, Mike