I have a column that contains city, state and zip code.
CITY_STATE_ZIP
--------------------------------------------------
Monroe, IN 46711
South Bend, IN 46615
Alexandria, IN 46001
I wants the three words 'CITY_STATE_ZIP' to be split into different columns.
CITY STATE ZIP
---------- ---------- --------------------
Monroe IN 46711
South Bend IN 46615
Alexandria IN 46001
I'm a litte unsure if you're trying to do this in a macro or spreadsheet. The following will work in a spreadsheet and can be modified for a macro.
Assuming your column of data in column D, and this example is spliting a string in D4.
Field D5 has the function
Field D6 has the function
Field D7 has
Supposing your cells are in column A:
You can do it as follows, if you want to use VBA.
There is a menu item "Text to Columns" that launches a wizard to do this. (If you need VBA code, you can turn on the macro recorder and see what it generates.)