Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Hi
I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
One way:
=IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) Regards Trevor "Daniel- Sydney" wrote in message ... Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
One way:
=IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) You can eliminate the need for the error check and simply the expression by making sure FIND always has a space to find... =LEFT(A1&" ",FIND(" ",A1&" ")-1) Rick |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Trevo
thanks, it works to an extent but the result is merging cells b1 and b2, b3 and b4 and so on, so the first word in cells a2 and a4, and so on, are not being copied over. What have I done wrong? thanks "Trevor Shuttleworth" wrote: One way: =IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) Regards Trevor "Daniel- Sydney" wrote in message ... Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
For quick and dirty, you can try experimenting with the Data | Text to
Column feature, using a delimiters of Space. Then if your data is in column A, specify in Step 3 that the Destination is in column B. The first word will then appear in Column B and you can delete the columns from C onwards .... HTH, Jeff "Daniel- Sydney" wrote in message ... Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Neat ... thank you.
"Rick Rothstein (MVP - VB)" wrote in message ... One way: =IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) You can eliminate the need for the error check and simply the expression by making sure FIND always has a space to find... =LEFT(A1&" ",FIND(" ",A1&" ")-1) Rick |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
No idea really. Did you copy and paste the formula or did you retype it ?
You might want to try Rick's solution ... should be same result but a neater way of doing it. "Daniel- Sydney" wrote in message ... Trevo thanks, it works to an extent but the result is merging cells b1 and b2, b3 and b4 and so on, so the first word in cells a2 and a4, and so on, are not being copied over. What have I done wrong? thanks "Trevor Shuttleworth" wrote: One way: =IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) Regards Trevor "Daniel- Sydney" wrote in message ... Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Thanks, that did it,
and I have learned from the other replies. thanks and regards "Rick Rothstein (MVP - VB)" wrote: One way: =IF(ISERROR(FIND(" ",A1)),A1,(LEFT(A1,FIND(" ",A1)-1))) You can eliminate the need for the error check and simply the expression by making sure FIND always has a space to find... =LEFT(A1&" ",FIND(" ",A1&" ")-1) Rick |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Text to Columns is not a good solution, unless you have only
two words the result is worse than what you started with. A macro solution avoids the messy clean up after using formulas to extract the first word into a second column and the rest into a third column, then convert to constants and remove the original column. I have two macros on my join.htm page that are helpful for separating the first word or the last word, placing the rest of the string (less the space) into the next column. http://www.mvps.org/dmcritchie/excel/join.htm#septerm http://www.mvps.org/dmcritchie/excel...tm#seplastterm and of course the opposite is to join the contents of several columns http://www.mvps.org/dmcritchie/excel/join.htm#join If not familiar with installing macros see http://www.mvps.org/dmcritchie/excel...rted#havemacro -- HTH, David McRitchie, Microsoft MVP -- Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm "Jeffrey W. Smith" wrote in message ... For quick and dirty, you can try experimenting with the Data | Text to Column feature, using a delimiters of Space. Then if your data is in column A, specify in Step 3 that the Destination is in column B. The first word will then appear in Column B and you can delete the columns from C onwards ... HTH, Jeff "Daniel- Sydney" wrote in message ... Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
#10
Posted to microsoft.public.excel.misc
|
|||
|
|||
Placing word into a seperate cell
Good stuff for next time
thanks David regards "Daniel- Sydney" wrote: Hi I have Excel 2003 SP2. I have a spreadsheet with one column, each cell contains several words, I need the first word in each cell to be moved into a cell in an adjacent column. Can I do this automatically? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i get word 2003 to open documents in a seperate windows? | Setting up and Configuration of Excel | |||
Logic for Placing Multiple field Returns in a Cell | Excel Discussion (Misc queries) | |||
Can I change the format of one cell by placing a tick in another? | Excel Discussion (Misc queries) | |||
Excel should open workbooks in seperate windows like Word does | Excel Discussion (Misc queries) | |||
I am placing a pie chart into word. When viewing/printing it look. | Charts and Charting in Excel |