Best way break apart Character String

tdp3290

Board Regular
Joined
Feb 15, 2007
Messages
58
Hi guys,

Here is my problem. I have a .csv file that has thousands of entries of car makes, models, year etc. Unfortunately my customer has given me the file from their DB and each entry with all the data is in a SINGLE CELL for each record. I need to break apart each of these and place them into separate columns. So here is the current structure:

chevy070522N5800

Which should be broken into 4 columns with the following headings:

Make / Date of Delivery / New-Used / Inv. Price
Chevy 070522 N 5800

When parsing the first few characters, keep in mind that this first part (Chevy in this example) may have any number of Characters from 1-5, but no more than 5. I assume I should just look at all alpha characters up until the first date character and strip those all off and put them into another adjacent column? The same is true of the last part of the entry...

Inv. Price can have up to 7 Characters in their entry. Again I assumed that I should just strip all numeric digits from the end of the entry and place those in another column and then just convert that to a currency format?

Any thoughts on the best way to accomplish this would be greatly appreciated. I just bought the Mr Excel Live Lessons Set from Borders yesterday.. even if someone could point me to the right place to start doing my own research on this..again appreciated.

Thanks
 
It also worked fine for me on all your examples. I too, just copied the formulas directly to a spreadsheet.
lenze
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hmmmmmm

Tried opening a fresh new worksheet... and it all works fine? Weird. Ok. well thank you so much guys...
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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