Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with manipulating data in excel? | Excel Discussion (Misc queries) | |||
Manipulating a matrix of data | Excel Discussion (Misc queries) | |||
manipulating scanned data | Excel Discussion (Misc queries) | |||
Manipulating Data Problem | Excel Worksheet Functions | |||
subtotaling and manipulating a list of data | Excel Worksheet Functions |