Extract text from string

bgregware

New Member
Joined
Feb 3, 2020
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hi All,

This is my first post on Mr. Excel and I have found this site to be extremely helpful. Im struggling to parse out information from a string of text.

Im struggling to be able to extract dimensional information from a description, below is a sample of descriptions and the expected output. Any help you can provide to write formulas for Dimensions 1, 2 & 3 would be excellent. Like I said this is my first post so if im missing key details please let me know.


DescriptionDimension 1Dimension 2Dimension 3
LAGOON 18-0 x 29-10 x 34-6 RIGHT18-029-1034-6
RECTANGLE 2FT RAD 16-0 x 38-016-038-0
KIDNEY 18-0 x 19-11 x 33-5 Left18-019-1133-5
TRUE-L 90DEG 18-0 x 42-0 x 42-0 RIGHT18-042-042-0
MOUNTAIN POND 17-0 x 23-4 x 45-0 LEFT17-023-445-0
OMNI 15-0 x 22-5 x 34-6 RIGHT15-022-534-6
RECTANGLE 6IN RAD 18-0 x 36-018-036-0
KIDNEY 18-0 x 20-0 x 33-8 LEFT18-020-033-8
TECH-RIO 14-3 x 16-10 x 28-6 Left14-316-1028-6
GEMINI 18-0 x 21-5 x 36-1 Left18-021-536-1
RECTANGLE 2FT RAD 18-0 x 36-018-036-0
PATRICIAN 6IN RAD 16-0 x 40-116-040-1
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi and welcome to MrExcel.

The example is perfect.
I hope the following works for you.

Book1
ABCD
1DescriptionDimension 1Dimension 2Dimension 3
2LAGOON 18-018-0  
3RECTANGLE 2FT RAD 16-0 x 38-016-038-0 
4KIDNEY 18-0 x 19-11 x 33-5 Left18-019-1133-5
5TRUE-L 90DEG 18-0 x 42-0 x 42-0 RIGHT18-042-042-0
6MOUNTAIN POND 17-0 x 23-4 x 45-0 LEFT17-023-445-0
7OMNI 15-0 x 22-5 x 34-6 RIGHT15-022-534-6
8RECTANGLE 6IN RAD 18-0 x 36-018-036-0 
9KIDNEY 18-0 x 20-0 x 33-8 LEFT18-020-033-8
10TECH-RIO 14-30 x 16-10 x 28-60 Left14-3016-1028-60
11GEMINI 18-0 x 21-5 x 36-1 Left18-021-536-1
12RECTANGLE 2FT RAD 18-0 x 36-018-036-0 
13PATRICIAN 6IN RAD 16-0 x 40-116-040-1 
Sheet4
Cell Formulas
RangeFormula
B2:D13B2=TRIM(MID(SUBSTITUTE(SUBSTITUTE(REPLACE($A2,1,FIND(" x ",$A2&" x ")-7,"")," x","")," ",REPT(" ",250)),250*COLUMNS($B1:B1),250))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,981
Messages
6,128,095
Members
449,419
Latest member
mammothzaa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top