Exctract Partial Data from Cell

gseay

New Member
Joined
Jul 20, 2011
Messages
9
I am trying to somewhat use a "left" function but the number of characters I am needing to extract will vary. Here is what my data looks like. (Each line is one cell.)

#300 2007 Freightliner
#66471 2008 International
#4540 2009 International

I am needing to separate the unit numbers and description and put into 2 separate cells.

Is there some kind of VBA that will extract all characters until there is a space??? Need some help please!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi and welcome to the board.
I'm a bit confused by your post as both the before & after examples look the same to me. (Well, when they were both there they did...)
Either way though, you should be able to do this using the Text to Columns feature.
(From the menu... Data > Text to Columns > choose Delimited > Next > check the box for 'Space' and hit Finish.)

Does that do what you're after?
 
Upvote 0
Thanks! That did the trick!

I had them separated when I was writing the post but when I submitted it the spaces were erased which made it look the same as the top example. So thats why I went ahead and deleted it.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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