Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Carriage return in a cell

How can I replace each comma followed by a space with a carriage-
return?

For example, a cell contains:


COL-ACTN-TYPE, COL-ACTN-NBR, ET-AL-IND


I want:


COL-ACTN-TYPE
COL-ACTN-NBR
ET-AL-IND



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,045
Default Carriage return in a cell

On Wed, 12 Jan 2011 17:06:51 -0800 (PST), gcotterl wrote:

How can I replace each comma followed by a space with a carriage-
return?

For example, a cell contains:


COL-ACTN-TYPE, COL-ACTN-NBR, ET-AL-IND


I want:


COL-ACTN-TYPE
COL-ACTN-NBR
ET-AL-IND



Use Find/Replace

Find What: , (,<space)

Replace With: <alt+010 (hold down the <alt key and type 010 on the numeric keypad, then release the <alt key)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Carriage return in a cell

Use Find/Replace

Find What: , (,<space)

Replace With: <alt+010 (hold down the <alt key and type 010 on the
numeric keypad, then release the <alt key)


An alternative method to fill in the "Replace With" field is to simply
key-in Ctrl+L instead... the text cursor will look like it disappeared, but
actually a Line Feed was inserted and the cursor moved to the end of the
second line (which is located out of view below the bottom of the text box).

Rick Rothstein (MVP - Excel)

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Carriage return in a cell

On Jan 12, 6:47*pm, "Rick Rothstein"
wrote:
Use Find/Replace


Find What: , * *(,<space)


Replace With: * *<alt+010 *(hold down the <alt key and type 010 on the
numeric keypad, then release the <alt key)


An alternative method to fill in the "Replace With" field is to simply
key-in Ctrl+L instead... the text cursor will look like it disappeared, but
actually a Line Feed was inserted and the cursor moved to the end of the
second line (which is located out of view below the bottom of the text box).

Rick Rothstein (MVP - Excel)


thank you!!!!!!!!!!!!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default Carriage return in a cell

I bet you meant ctrl-j, not ctrl-L



On 01/12/2011 20:47, Rick Rothstein wrote:
Use Find/Replace

Find What: , (,<space)

Replace With: <alt+010 (hold down the <alt key and type 010 on the numeric
keypad, then release the <alt key)


An alternative method to fill in the "Replace With" field is to simply key-in
Ctrl+L instead... the text cursor will look like it disappeared, but actually a
Line Feed was inserted and the cursor moved to the end of the second line (which
is located out of view below the bottom of the text box).

Rick Rothstein (MVP - Excel)


--
Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Carriage return in a cell

An alternative method to fill in the "Replace With" field is to simply
key-in
Ctrl+L instead... the text cursor will look like it disappeared, but
actually a
Line Feed was inserted and the cursor moved to the end of the second line
(which is located out of view below the bottom of the text box).

I bet you meant ctrl-j, not ctrl-L


I bet you are right. Funny, I tested the keystroke out just before I posted
my message (that is when I noticed the text cursor "disappearing"), so how
did I screw up and type and L for a J? Thanks for catching that.

Rick Rothstein (MVP - Excel)

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
Carriage return in cell gcotterl[_2_] Excel Programming 0 January 13th 11 12:57 AM
Carriage return in same cell without using alt-enter charlie54933 Excel Worksheet Functions 11 February 1st 10 12:33 AM
Getting rid of carriage return in cell James R Excel Discussion (Misc queries) 4 September 8th 08 07:53 PM
Carriage return within a cell Jon Excel Discussion (Misc queries) 3 August 7th 07 06:56 AM
Carriage return in a cell Jos Vens[_2_] Excel Programming 2 November 25th 04 10:03 AM


All times are GMT +1. The time now is 04:46 PM.

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"