Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pat Pat is offline
external usenet poster
 
Posts: 210
Default Help With Manipulating Data

I have a file that I'm getting from an source, the first field contains a
field like this:

OK - Interim OR Director / Southwestern Medical Center
IA - ASAP MedSurg/Float Nurse/Nights / Allen Hospital
AZ - ICU (URGENT) / Tuba City Regional
MT- OR/RN / Billings Clinic
CO - RN OR Eve shift / Medical Center of the Rockies

Each line represents one cell. My problem is that I need this data
transformed some how in to three fields. State, Position, Facility (which is
the order and information contained in the cell).

Any thoughts, suggestions? Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Help With Manipulating Data

Hi,

In many case the best way to break up data that is in single cell (column)
into two or more cells is to use the Text to Columns Wizard.

1. Select a single column of cells which you want to split.
2. Choose the command Data, Text to Columns,
3. Choose Delimited and click Next
4. Choose one of the delimiter or define one of your own in the Other box,
and then click Next
5. In many cases there is nothing you need to do at this step, so just click
Finish.

In your case run the command once and choose Fixed Width on the first
screen, on the second screen click between the 5th and 6th character and
click Finish.

Then select the second column of data, which now contains the other two
pieces of information and repeat the Text to Columns command but this time
choose Delimited and on the next screen enter / in the Other box and click
Finish.

If this information helps, please click the Yes button.

Cheers,
Shane Devenshire

"Pat" wrote:

I have a file that I'm getting from an source, the first field contains a
field like this:

OK - Interim OR Director / Southwestern Medical Center
IA - ASAP MedSurg/Float Nurse/Nights / Allen Hospital
AZ - ICU (URGENT) / Tuba City Regional
MT- OR/RN / Billings Clinic
CO - RN OR Eve shift / Medical Center of the Rockies

Each line represents one cell. My problem is that I need this data
transformed some how in to three fields. State, Position, Facility (which is
the order and information contained in the cell).

Any thoughts, suggestions? Thanks in advance for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Help With Manipulating Data

another way:

State: =LEFT(A1,2)
Position: =MID(A1,FIND(" - ",A1)+3,LEN(A1)-FIND(" - ",A1)-3-FIND(" /
",A1)-4)
Facility: =MID(A1,FIND(" / ",A1)+3,LEN(A1)-FIND(" / ",A1)-2)

HIH
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Help With Manipulating Data

You may need to do a bit of preperation on your cells for this to work, by
using the replace option in Excel.
Use the replace option to replace the Hyphen " - " with a comma " , "
Highlight all the cells then Data/Text to Columns, Delimited checked/Next.
"Tab" checked "Comma" checked "Other" checked then type a "/" into the box.
Next/ Finish.
A problem arises with these lines "MT- OR/RN / Billings Clinic" and "IA -
ASAP MedSurg/Float Nurse/Nights / Allen Hospital" because "OR", "RN" and
"Float Nurse","Nights" appear in seperate columns.

OK Interim OR Director Southwestern Medical Center
IA ASAP MedSurg Float Nurse Nights Allen Hospital
AZ ICU (URGENT) Tuba City Regional
MT OR RN Billings Clinic
CO RN OR Eve shift Medical Center of the Rockies


Apart from these it works great.

"Pat" wrote:

I have a file that I'm getting from an source, the first field contains a
field like this:

OK - Interim OR Director / Southwestern Medical Center
IA - ASAP MedSurg/Float Nurse/Nights / Allen Hospital
AZ - ICU (URGENT) / Tuba City Regional
MT- OR/RN / Billings Clinic
CO - RN OR Eve shift / Medical Center of the Rockies

Each line represents one cell. My problem is that I need this data
transformed some how in to three fields. State, Position, Facility (which is
the order and information contained in the cell).

Any thoughts, suggestions? Thanks in advance for your help.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with manipulating data in excel? jock Excel Discussion (Misc queries) 3 July 29th 08 03:24 PM
Manipulating a matrix of data Magenta Excel Discussion (Misc queries) 3 February 5th 08 05:48 AM
manipulating scanned data alaskachic Excel Discussion (Misc queries) 2 November 17th 06 09:13 PM
Manipulating Data Problem Jeff Excel Worksheet Functions 0 June 8th 06 04:28 AM
subtotaling and manipulating a list of data TJN Excel Worksheet Functions 0 April 27th 05 10:31 PM


All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"