Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Carriage Return By Replace() function

I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Carriage Return By Replace() function

Try this:

=SUBSTITUTE(A1," ",CHAR(10))

You'll have to "clean it up" a little by:

Formatting the cells to wrap text: FormatCellsAlignment tabWrap textOK
Adjust the column width
Adjust the row height

--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Carriage Return By Replace() function

Hi Faraz,

Just do an EditReplace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin


"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Carriage Return By Replace() function

You could also use ctrl-j instead of the alt-0010 (from the numeric keypad).

(Easier to do and easier to explain <bg)

MartinW wrote:

Hi Faraz,

Just do an EditReplace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin

"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Carriage Return By Replace() function

See that 99, the old Ctrl+J trick, that's the third time I've missed it this
year!

<g
Martin

"Dave Peterson" wrote in message
...
You could also use ctrl-j instead of the alt-0010 (from the numeric
keypad).

(Easier to do and easier to explain <bg)

MartinW wrote:

Hi Faraz,

Just do an EditReplace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin

"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Carriage Return By Replace() function

XCLent!!
Any other further usable combinations of ctrl+... ?

"MartinW" wrote:

See that 99, the old Ctrl+J trick, that's the third time I've missed it this
year!

<g
Martin

"Dave Peterson" wrote in message
...
You could also use ctrl-j instead of the alt-0010 (from the numeric
keypad).

(Easier to do and easier to explain <bg)

MartinW wrote:

Hi Faraz,

Just do an EditReplace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin

"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ


--

Dave Peterson




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Carriage Return By Replace() function

Not from me.

FARAZ QURESHI wrote:

XCLent!!
Any other further usable combinations of ctrl+... ?

"MartinW" wrote:

See that 99, the old Ctrl+J trick, that's the third time I've missed it this
year!

<g
Martin

"Dave Peterson" wrote in message
...
You could also use ctrl-j instead of the alt-0010 (from the numeric
keypad).

(Easier to do and easier to explain <bg)

MartinW wrote:

Hi Faraz,

Just do an EditReplace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin

"FARAZ QURESHI" wrote in message
...
I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells
B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ


--

Dave Peterson





--

Dave Peterson
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
how to find replace text or symbol with carriage return jo New Users to Excel 11 April 4th 23 10:41 AM
Find and replace a space with carriage return in excel MikeMcCollum Excel Discussion (Misc queries) 4 April 3rd 23 04:29 PM
How to remove or replace a carriage return character in a cell? Patty Excel Discussion (Misc queries) 2 July 26th 05 06:25 PM
Search and replace with Carriage return Andibevan Excel Discussion (Misc queries) 2 May 17th 05 12:43 PM
Find/Replace carriage return & line feed characters in Excel. Mary Cullen Excel Worksheet Functions 1 January 4th 05 07:39 PM


All times are GMT +1. The time now is 09:45 AM.

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

About Us

"It's about Microsoft Excel"