|
|
|
#1
|
|||
|
|||
|
Excel Question ... sorry about this.
I'm usually pretty good about getting Excel to dance to whatever tune I want to play, but this time I'm stumped and it's a really simple problem.
How do you concatenate a [carriage return] into a string? |
| Advertisements | |
|
|
|
|
#2
|
|||
|
|||
|
<Alt><Enter>
Last edited by Mangetout; 09-05-2007 at 09:52 AM. |
|
#3
|
|||
|
|||
|
I think the OP is wanting to preserve carriage returns in cells when CONCATENATE-ing but is finding they dissapear. Is that correct, OP?
|
|
#4
|
|||
|
|||
|
Interesting result there, Mr. Omnivore, and that may yet come in handy. But what I'm looking for is a character that can be concatenated between two strings that will induce a carriage return when the result is pasted into notepad/word document, etc.
The code would look something like: =concatenate(A23,?,B23,?,C23) and result in: A23 B23 C23 |
|
#5
|
|||
|
|||
|
I have a feeling it's something like CHAR13?
|
|
#6
|
|||
|
|||
|
Quote:
__________________
-Christian "You won't like me when I'm angry. Because I always back up my rage with facts and documented sources." -- The Credible Hulk |
|
#7
|
|||
|
|||
|
=char(10) and =char(13) both work fine when I paste the result into Word. Neither work when I paste into Notepad or into the program I need to paste it into. Figures.
What I'm pasting into is a (I think) VB-based questionnaire which then loads the text into a (I think) COBOL-based display program. |
|
#8
|
|||
|
|||
|
CHAR(13) is a carriage return and CHAR(10) is a line feed. The correct one to use depends on your operating system. In Windows, you use a carriage return AND a line feed together (Linux uses CR by itself and MacOS uses LF by itself).
So try something like Code:
=concatenate(A23,CHAR(13),CHAR(10),B23,CHAR(13),CHAR(10),C23) |
|
#9
|
|||
|
|||
|
***Plants a big sloppy kiss on Mbossa's teeth***
That did the trick! |
|
#10
|
|||
|
|||
|
Quote:
Quote:
|
|
#11
|
|||
|
|||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|