Solved

Excel line breaks

Posted on 2016-10-13
1
23 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 48

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now