Parse Comma delimited fields

rpadminserver

Board Regular
Joined
Nov 7, 2007
Messages
111
Office Version
  1. 365
Hello all...
I'm hopeing someone can help me with some ACCESS SQL that will parse a comma delimited field into individual fields.

MY table name is TEST4A

I have a description field that looks like the following:
CUT 111.2, IBG-1, 2, B1-1NWLR


I have to parse this part of the data into 4 fields:
CUT 111.2, IBG-1, 2, B1

CUT 111.2 goes in the CUT_NAME field
IBG-1 goes in the LOCATION Field
2 goes into the Rack field
B1 goes into the Position field.

The description field will always have 4 parts to it, and those parts will always be comma seperated.
The last part (B1-1NWLR) I will always need to extract the first 2 char. There may or may not be a dash between the forst 2 char and the rest of the data in that section. Also the data after the dash will not always be the same number of char.

The description field and the 4 fields above are all in the same table.

As always thanks for any help!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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