Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? Thanks -- ekafrawy ------------------------------------------------------------------------ ekafrawy's Profile: http://www.excelforum.com/member.php...o&userid=24387 View this thread: http://www.excelforum.com/showthread...hreadid=379764 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You don't need VBA, use DataText To Columns with a separator of *.
-- HTH RP (remove nothere from the email address if mailing direct) "ekafrawy" wrote in message ... Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? Thanks -- ekafrawy ------------------------------------------------------------------------ ekafrawy's Profile: http://www.excelforum.com/member.php...o&userid=24387 View this thread: http://www.excelforum.com/showthread...hreadid=379764 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "ekafrawy" wrote in message ... Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? Thanks -- ekafrawy ------------------------------------------------------------------------ ekafrawy's Profile: http://www.excelforum.com/member.php...o&userid=24387 View this thread: http://www.excelforum.com/showthread...hreadid=379764 If the only column is these cells, then it might be easier to copy/paste into Word, do a Find-and-Replace(* for ^p then ^p^p for ^p to remove extra blank lines from ** unless wanted) then copy/paste results back to Excel, especially if this is a one-time use. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If this is a one-off, a way to do this manually would be to do a
Find/Replace to replace a double asterisk with a single asterisk. Then choose Data/Text to Columns, select Delimited, and enter the asterisk in the Other box on the second pane. If you need to do this repeatedly, you could record a macro of the above. In article , ekafrawy wrote: Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think I like tkstock's response better <vbg, but if the OP is gonna do the
edit|Replace, then it's best to change: ~*~* to * The asterisk is a wild card and xl needs to be told to really look for the asterisk--not any set of characters. JE McGimpsey wrote: If this is a one-off, a way to do this manually would be to do a Find/Replace to replace a double asterisk with a single asterisk. Then choose Data/Text to Columns, select Delimited, and enter the asterisk in the Other box on the second pane. If you need to do this repeatedly, you could record a macro of the above. In article , ekafrawy wrote: Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks for the amplification, Dave!
mumblemumblemumble...<g In article , Dave Peterson wrote: I think I like tkstock's response better <vbg, but if the OP is gonna do the edit|Replace, then it's best to change: ~*~* to * The asterisk is a wild card and xl needs to be told to really look for the asterisk--not any set of characters. JE McGimpsey wrote: If this is a one-off, a way to do this manually would be to do a Find/Replace to replace a double asterisk with a single asterisk. Then choose Data/Text to Columns, select Delimited, and enter the asterisk in the Other box on the second pane. If you need to do this repeatedly, you could record a macro of the above. In article , ekafrawy wrote: Hi I was wondering if using a macro would be a good way to do this. I have a bunch of cells that have 5 or 6 sentences in each cell. Each sentence is separated by an Astrisk(*) or double Astrisk(**). Is there a way to have excel take each sentence and put it into its own cell automatically? instead of copying each sentence and pasting it into its own cell one by one? |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() ok great thank for the help -- ekafrawy ------------------------------------------------------------------------ ekafrawy's Profile: http://www.excelforum.com/member.php...o&userid=24387 View this thread: http://www.excelforum.com/showthread...hreadid=379764 |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() it work great except i need each separeted sentence into a new row not new column. I don't see an option to do thi -- ekafraw ----------------------------------------------------------------------- ekafrawy's Profile: http://www.excelforum.com/member.php...fo&userid=2438 View this thread: http://www.excelforum.com/showthread.php?threadid=37976 |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Use the -Data Text to Columns- functionality. Specify "delimited and "other" as the delimiter. Put an "*" in the box, then check th "Treat consecutive delimiters as one" HT -- tkstoc ----------------------------------------------------------------------- tkstock's Profile: http://www.excelforum.com/member.php...fo&userid=1444 View this thread: http://www.excelforum.com/showthread.php?threadid=37976 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need help setting a simple format to keep rent. | New Users to Excel | |||
macro setting? | Excel Programming | |||
Very simple ? on setting up tab order | Excel Programming | |||
Sending email via macro- setting the importance setting. | Excel Programming | |||
setting row in macro | Excel Programming |