Seperate letters and numbers

cdevlinrushe

New Member
Joined
Dec 10, 2015
Messages
4
Hi,
I have a value for a volume eg. 24 L and I want to split this so I just have the volume unit (in this case L). The values are delimited so I can't use string functions.

24 L is in the cell R2.
There can also be values such as 16000 KG.
There is always a space between the value and the unit if that helps any.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
are they always seperated by a space ""?
 
Upvote 0
in that case

for the numbers part, =LEFT(A1,FIND(" ",A1)-1)

and the letters, =RIGHT(A1,LEN(A1)-FIND(" ",A1))
 
Upvote 0
I now realise why I am receiving an error.
The cell reads 24 L but when I click on the cell it actually contains only 24 (in the function bar)
Any way I can resolve this without using a formula?
 
Upvote 0
try this

=IFERROR(LEFT(A1,FIND(" ",A1)-1),A1)
 
Upvote 0
I now realise why I am receiving an error.
The cell reads 24 L but when I click on the cell it actually contains only 24 (in the function bar)
Any way I can resolve this without using a formula?

you can use excel's built-in Text-to-Column function using space as the "delimited".
 
Upvote 0
Does this mean they added the unit of measure as a customized cell format for each individual cell??

Kill it. Kill it with fire.
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,155
Members
449,208
Latest member
emmac

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