Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
0-0 Wai Wai ^-^
 
Posts: n/a
Default Insert manual line break in formula

Hi
I have a formula which combines texts from several sources.
Eg:
="I am a "&A30&". You are a "&A31&".
However we don't "&A32&", nor "&A33&".
Except that, we do "&A34&"."

However the whole statement will appear in 1 line.
I would like to break it into 3 lines in that cell.
How to do?


--
Additional information:
- I'm using Office XP
- I'm using Windows XP


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Insert manual line break in formula

Try something like this:
="I am a "&A30&". You are a "&A31&". "&CHAR(10)&"However we don't "&A32&",
nor "&A33&". "&CHAR(10)&"Except that, we do "&A34&"."

Note: You'll need to set your cells to wrap text and set column widths.
FormatCellsAlignement Tab
Check: Wrap Text

Does that help?

***********
Regards,
Ron


"0-0 Wai Wai ^-^" wrote:

Hi
I have a formula which combines texts from several sources.
Eg:
="I am a "&A30&". You are a "&A31&".
However we don't "&A32&", nor "&A33&".
Except that, we do "&A34&"."

However the whole statement will appear in 1 line.
I would like to break it into 3 lines in that cell.
How to do?


--
Additional information:
- I'm using Office XP
- I'm using Windows XP



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
0-0 Wai Wai ^-^
 
Posts: n/a
Default Insert manual line break in formula



"Ron Coderre" ¦b¶l¥ó
¤¤¼¶¼g...
Try something like this:
="I am a "&A30&". You are a "&A31&". "&CHAR(10)&"However we don't "&A32&",
nor "&A33&". "&CHAR(10)&"Except that, we do "&A34&"."

Note: You'll need to set your cells to wrap text and set column widths.
FormatCellsAlignement Tab
Check: Wrap Text

Does that help?


It helps a lot although this solution is not perfect. :D
By the way, would you mind telling me what's the point of adding "CHAR(10)"?
I would like to understand why.
Thanks. :-)
..
..
..


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Insert manual line break in formula

Char(10) refers to the ASCII code 10, which represents a line break or "line
feed". Consequently, putting the &Char(10)& in a string is the equivalent of
[Alt]+[Enter] in the string.

For a list of other ASCII codes...try this link:
http://www.neurophys.wisc.edu/www/comp/docs/ascii.html

Does that help?

***********
Regards,
Ron


"0-0 Wai Wai ^-^" wrote:



"Ron Coderre" ¦b¶l¥ó
¤¤¼¶¼g...
Try something like this:
="I am a "&A30&". You are a "&A31&". "&CHAR(10)&"However we don't "&A32&",
nor "&A33&". "&CHAR(10)&"Except that, we do "&A34&"."

Note: You'll need to set your cells to wrap text and set column widths.
FormatCellsAlignement Tab
Check: Wrap Text

Does that help?


It helps a lot although this solution is not perfect. :D
By the way, would you mind telling me what's the point of adding "CHAR(10)"?
I would like to understand why.
Thanks. :-)
..
..
..



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
Continue formula to LINE 1000 without showing FALSE chieron Excel Worksheet Functions 2 December 8th 05 01:52 PM
Overtime computation and lunch break formula with IF and AND navychef Excel Worksheet Functions 4 December 8th 05 08:06 AM
Manual line break in cell GKW in GA Excel Discussion (Misc queries) 1 November 6th 05 06:28 AM
Insert New Row without shifting formula DJ Excel Worksheet Functions 2 September 26th 05 03:31 AM
Insert Formula and Copy to other cells [email protected] Excel Discussion (Misc queries) 1 August 12th 05 08:51 PM


All times are GMT +1. The time now is 06:07 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"