One problem with dimensions entered as text is that they can’t be used for any kind of calculation.

So, in addition, we want our final dimensions to benumeric.

In this case, the delimiter is the “x” character.

Excel formula: Split dimensions into two parts

There are two basic approaches to solving this problem.

If you are usingExcel 365, the easiest solution is to use theTEXTSPLIT functionas shown in the worksheet above.

Both approaches are explained below.

Excel formula: Get first name from name

First, TEXTSPLIT splits the text in B5 using the “x”.

Our goal is to get actual numeric values, so in the second step, we simply add zero.

The formula returns this result to cell D5, and the three dimensionsspillinto the range D5:F5.

Excel formula: Get first name from name with comma

Legacy Excel

InLegacy Excel, we need to use more complicated formulas to accomplish the same thing.

We then subtract from that the location of the first “x” + 1.

At a high level, we are using theRIGHT functionto extract text from the right.

Excel formula: Split text string at specific character

TEXTSPLIT can split text into rows or columns.

For example, =LEFT(“apple”,3) returns “app”.

For example, =RIGHT(“apple”,3) returns “ple”.

Excel TEXTSPLIT function

For example, =MID(“apple”,2,3) returns “ppl”.

LEN will also count characters in numbers, but number formatting is not included.

SUBSTITUTE Function

The Excel SUBSTITUTE function replaces text in a given string by matching.

Excel LEFT function

SUBSTITUTE is case-sensitive and does not support wildcards….

TEXTSPLIT with numbers

Excel RIGHT function

Excel MID function

Excel LEN function

Excel SUBSTITUTE function

Article image