Separate letters from numbers

cecirue

New Member
Joined
Jan 22, 2015
Messages
3
Hi! I'm new to this board and I'm sure this is a very simple solution however I'm stuck right now.
I have a column that looks like the below however consistently changes in number of characters and letter. I need to be able to separate the numbers from the letters as they are the unit of measurement. I believe the mid or right function would work together however I just can't figure it out. Any help would be greatly appreciated. I would love to be able to isolate both the numbers and letters into their own cells.

Thanks so much!

[TABLE="width: 51"]
<tbody>[TR]
[TD]2.5Z[/TD]
[/TR]
[TR]
[TD]2.25Z[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]57G[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]6UN[/TD]
[/TR]
[TR]
[TD]2Z[/TD]
[/TR]
[TR]
[TD]50UN[/TD]
[/TR]
[TR]
[TD]50UN[/TD]
[/TR]
[TR]
[TD]10L[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the Board!

Are there always exactly only one or two letters at the end, or are there also other variations?
 
Upvote 0
always variable. There is no consistency. Here's another batch from it. The most # of letters is 4 letters and the least is 1. As for numbers they vary as well.

[TABLE="width: 51"]
<tbody>[TR]
[TD]2.27KG[/TD]
[/TR]
[TR]
[TD]1L[/TD]
[/TR]
[TR]
[TD]2.5KG[/TD]
[/TR]
[TR]
[TD]2KG[/TD]
[/TR]
[TR]
[TD]1.7KGA[/TD]
[/TR]
[TR]
[TD]3KG[/TD]
[/TR]
[TR]
[TD]2KG[/TD]
[/TR]
[TR]
[TD].650GA[/TD]
[/TR]
[TR]
[TD]125G[/TD]
[/TR]
[TR]
[TD]500G[/TD]
[/TR]
[TR]
[TD]1.5KGA[/TD]
[/TR]
[TR]
[TD]125G[/TD]
[/TR]
[TR]
[TD]2.8KGA[/TD]
[/TR]
[TR]
[TD]2.27KG[/TD]
[/TR]
[TR]
[TD]21G[/TD]
[/TR]
[TR]
[TD]4.54KG[/TD]
[/TR]
[TR]
[TD]2.27KG[/TD]
[/TR]
[TR]
[TD]2.5KG[/TD]
[/TR]
[TR]
[TD]2.5KG[/TD]
[/TR]
[TR]
[TD]2.27KG[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Personally, I would be inclined to use VBA and create a User Defined function, as if you have that uncertainty, the formulas can get a little messy.
Here are some past threads that show both formulaic and VBA solutions.
http://www.mrexcel.com/forum/excel-questions/463005-extract-number-alphanumeric-string.html
http://www.mrexcel.com/forum/excel-...ext-middle-alphanumeric-string-up-number.html
http://www.mrexcel.com/forum/excel-questions/786066-formula-extract-numbers-alphanumeric-string.html
 
Upvote 0
Thanks Joe4! I feared the idea that VBA was the safest way to get the answer to this. I was trying my hardest not to go that route.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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