Splitting on " " delimiter

nutritiouspig

Well-known Member
Joined
Jan 8, 2003
Messages
615
I have this setup of text string:

0123 456

I want to split into two fields using the " " as delimiter, how can i do this?

Thanks
S.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are you talking about importing a text file into Access? If so, when you go through the Import Wizard, simply select the "Space" radio button as the delimiter.
 
Upvote 0
well, the data is already in access. i know i could export to a text and re-import and delimit .... however .... i need to make this something simple that those who are not so technical don't have to think about it...and its already done on the backend
 
Upvote 0
If it is already in a table, you can use calculated fields in query to pull it apart. The following will split it after the first space it finds:

LeftPart: Left([Table1]![Field1],InStr([Table1]![Field1]," ")-1)

RightPart: Right([Table1]![Field1],Len([Table1]![Field1])-InStr([Table1]![Field1]," "))


Obviously, you will need to substitute in the correct table/field names.
 
Upvote 0

Forum statistics

Threads
1,221,691
Messages
6,161,309
Members
451,696
Latest member
Senthil Murugan

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