Solved

Excel line breaks

Posted on 2016-10-13
1
30 Views
Last Modified: 2016-10-13
I have an excel file which I have multiple lines in setup as:-
=Speed!B6 & "ms     " & Speed!C6 & "Mbps     " & Speed!D6 & "Mbps" & CHAR(10) &
DriveSpace!B4 & "     " & DriveSpace!C4 & " / " & DriveSpace!D4&CHAR(10) &
DriveSpace!B5 & "     " & DriveSpace!C5 & " / " & DriveSpace!D5&CHAR(10) &
DriveSpace!B6 & "     " & DriveSpace!C6 & " / " & DriveSpace!D6&CHAR(10) &
DriveSpace!B7 & "     " & DriveSpace!C7 & " / " & DriveSpace!D7&CHAR(10) &
DriveSpace!B8 & "     " & DriveSpace!C8 & " / " & DriveSpace!D8&CHAR(10) &
DriveSpace!B9 & "     " & DriveSpace!C9 & " / " & DriveSpace!D9

Open in new window


Which works fine in excel, however when I copy it to another program (in this case Access or notepad) its all on one line.

Any idea how I can have multiple lines in an excel cell, and when I copy it out to notepad its also on multiple lines?
0
Comment
Question by:tonelm54
1 Comment
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41841755
Hi,

pls try

=Speed!B6&"ms     " & Speed!C6 & "Mbps     " & Speed!D6 & "Mbps" & CHAR(13)  & CHAR(10) &
DriveSpace!B4 & "     " & DriveSpace!C4 & " / " & DriveSpace!D4& CHAR(13)  & CHAR(10) &
DriveSpace!B5 & "     " & DriveSpace!C5 & " / " & DriveSpace!D5& CHAR(13)  & CHAR(10) &
DriveSpace!B6 & "     " & DriveSpace!C6 & " / " & DriveSpace!D6& CHAR(13)  & CHAR(10) &
DriveSpace!B7 & "     " & DriveSpace!C7 & " / " & DriveSpace!D7& CHAR(13)  & CHAR(10) &
DriveSpace!B8 & "     " & DriveSpace!C8 & " / " & DriveSpace!D8& CHAR(13)  & CHAR(10) &
DriveSpace!B9 & "     " & DriveSpace!C9 & " / " & DriveSpace!D9

Open in new window

Regards
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question