Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Split dimensions into two parts in Excel

This article explains how to use formula to split dimensions in a cell into two parts without units (individual length and width).


How to split dimensions into two parts?

You need to apply three formulas separately to split dimensions into individual length and width without units.

Generic formula of removing units from dimension

=SUBSTITUTE(SUBSTITUTE(text,"units","")," ","")

Generic formula of extracting the first dimension

=LEFT(text,FIND("char",text)-1)

Generic formula of extracting the second dimension

=RIGHT(text,LEN(text)-FIND("char",text))

Arguments of above formulas

Text: The string you want to extract the given number of characters from it. It can be:

  • 1. The text enclosed in quotation marks;
  • 2. Or a reference to a cell containing the text.

Units: The unit in the cell that you want to remove.

Char: The character you will split the dimensions based on.

How to use these formulas?

Supposing you have a dimensions list as the below screenshot shown, please do as follows step by step to split it into two parts without units.

Firstly, you need to remove the units from the dimensions

1. Select a blank cell to output the dimensions without units.

2. Enter the below formula into it and press the Enter key. Select the result cell and then drag the Fill Handle to apply the formula to other cells as you need.

=SUBSTITUTE(SUBSTITUTE(B3,"ft","")," ","")

Secondly, get the first dimension

1. Select a blank cell to place the first dimension.

2. Enter the below formula into it and press the Enter key. Select the result cell and then drag the Fill Handle to apply the formula to other cells as you need.

=LEFT(C3,FIND("x",C3)-1)

Finally, get the last dimension

1. Select a blank cell to place the last dimension.

2. Enter the below formula into it and press the Enter key. Select the result cell and then drag the Fill Handle to apply the formula to other cells as you need.

=RIGHT(C3,LEN(C3)-FIND("x",C3))

How these formulas work?

=SUBSTITUTE(SUBSTITUTE(B3,"ft","")," ","")

  • 1. SUBSTITUTE(B3,"ft",""): The inner SUBSTITUTE function removes all "ft" from B3. The result is 100 x 300
  • 2. SUBSTITUTE("100 x 300 "," ",""): The outer SUBSTITUTE function removes all spaces from B3 and returns the result as 100x300.

=LEFT(C3,FIND("x",C3)-1)

  • 1. FIND("x",C3)-1: The FIND function locates the "x" in C3. For getting the first dimension without the "x", you need to subtract 1. Then the result is 4-1=3.
  • 2. LEFT(C3,3): The LEFT function extract 3 characters starting from the left side of C3 and returns the result as 100.

=RIGHT(C3,LEN(C3)-FIND("x",C3))

  • 1. LEN(C3): The LEN function calculates the total string length in C3 and returns the result as 7;
  • 2. FIND("x",C3): The FIND function locates the "x" in C3. The result is 4;
  • 3. RIGHT(C3,7-4): And then the RIGHT function extracts 3 characters starting from the right side of C3 and returns the last dimension as 300.

Related functions

Excel LEFT function
The LEFT function extracts the given number of characters from the left side of a supplied string.

Excel RIGHT function
The RIGHT function extracts a specific number of characters from the right side of the text string.

Excel FIND function
The FIND function is used to find a string within another string, and returns the starting position of the string inside another one.

Excel LEN function
The LEN function returns the number of characters in a text string.

Excel SUBSTITUTE function
The Microsoft Excel SUBSTITUTE function replaces text or characters within a text string with another text or characters.


Related formulas

Split dimensions into individual length, height and width
This article explains how to split dimensions in a cell into three parts (individual dimensions that include length, height and width).

Separate numbers from units of measurement
This article explains how to use formula to separate numbers from unites of measurement.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.