+ Reply to Thread
Results 1 to 4 of 4

Carriage return in Excel formula, then pasting text into different program; no line breaks

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    San Rafael, CA
    MS-Off Ver
    Office 2010
    Posts
    2

    Carriage return in Excel formula, then pasting text into different program; no line breaks

    Hi Folks,

    This is a variant on a problem that others have posted.

    I have an Excel formula that concatenates two fields. I would like to have the results separated by a carriage return so that I can then cut and paste the carriage-return lines into a different (non Office) program with the carriage returns.

    It just doesn't seem to be working no matter what I try.

    Here is what I have tried:

    =IF(ISBLANK(H550), "", "Serial: & CHAR(10) & CHAR(13) &" & E550& "Email: " & H550)
    =IF(ISBLANK(H550), "", "Serial: & CHAR(10) &" & E550& "Email: " & H550)
    =IF(ISBLANK(H550), "", "Serial: & CHAR(13) &" & E550& "Email: " & H550)

    Setting the cell to word wrap DOES cause the text to format properly in the cell, but not when pasted into the other program.

    Anyone have any thoughts?

    KP

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Carriage return in Excel formula, then pasting text into different program; no line br

    With text wrap on, this should work
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then you would need to copy and Paste Special > Values back to remove the formulas and then paste into the new program. Is that what you are doing?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-29-2013
    Location
    San Rafael, CA
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Carriage return in Excel formula, then pasting text into different program; no line br

    Hi ChemistB,

    For the purposes of discussion, let's just say I'm pasting into MS Notepad.

    I tried your suggestion. Specifically, here's what I did:

    Turned on text wrap on the cell with the formula. Result: text now displays on two lines
    Copied the cell
    pasted cell contents "as text" into separate cell that already had "text wrap" turned on. Result: no carriage returns
    copied contents of cell with the text only into notepad. Results: no carriage returns.

    Very baffling. This should be easier.

    KP

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Carriage return in Excel formula, then pasting text into different program; no line br

    Don't want to paste as text. Paste as values (in same workbook, preferably in same cells). I just checked though and it still doesn't paste properly into notepad. Hmmmmm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Forcing a carriage return when pasting to a bookmark
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-02-2013, 02:56 AM
  2. Replies: 8
    Last Post: 11-07-2008, 09:26 AM
  3. Pasting text with line breaks into Excel 2000?
    By AnotherExcelNb in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 07-26-2008, 11:39 AM
  4. Parsing Excel Column based on Line Feed/Carriage Return?
    By kj2398 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2007, 01:23 PM
  5. [SOLVED] Find/Replace carriage return & line feed characters in Excel.
    By Mary Cullen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2005, 04:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1