Excel: Inserting many Horizontal rows in same Cell

AI Thread Summary
The discussion revolves around the challenge of inserting multiple horizontal rows of text into a single cell in Excel. A user seeks a solution to combine text from different cells into one cell while maintaining line breaks. Suggestions include using the "Alt + Enter" key combination to create line breaks within a cell, or merging cells after placing text in separate vertical cells. Another method discussed involves using formulas to concatenate text from multiple cells, utilizing the ASCII code for line feed (CHAR(10)) to achieve the desired formatting. The conversation also touches on the potential for creating a dedicated forum or sticky thread for Excel tips, given its widespread use and versatility.
WWGD
Science Advisor
Homework Helper
Messages
7,701
Reaction score
12,764
Hi all,
I have been trying unsuccessfully to figure out how to insert many horizontal rows into the same
cell in Excel: I have gone over many sites, asked people, all sorts of key combinations, without success.
Any ideas you know work, please?
Thanks.
 
Computer science news on Phys.org
LOL. Why?
 
berkeman said:
LOL. Why?
I need to produce a doc for a client that requires content in different cells/rows be pasted into a single cell.
 
WWGD said:
I need to produce a doc for a client that requires content in different cells/rows be pasted into a single cell.
Text content, or a text version of the calculations for those cells? Multiple cell structures are not compatible with a single cell''s structure, AFAIK
 
berkeman said:
Text content, or a text version of the calculations for those cells? Multiple cell structures are not compatible with a single cell''s structure, AFAIK
No, say you have text content in cells , say, D4, D5, D6 , and you want all of this written into cell D9, as three horizontal rows, i.e., D9 will contain:

EDIT:
(content of)D4
(Content of)D5
(Content of)D6
within it; three horizontal text rows falling into cell D9 .

Say we have
D4: Today I went
D5: Downtown for a drink
D6 And I left at around 5.

And we want to end up with :
Today I went
Downtown for a drink
And I left at around 5

all in cell D9, or anyone other cell.
 
Can you make it a different column? Can you give an example? Shoud be pretty easy...
 
berkeman said:
Can you make it a different column? Can you give an example? Shoud be pretty easy...
Sorry, just edited , please see above.
 
No comprendo

Can you post a PDF of your spreadsheet? Use PrimoPDF or another free PDF writer...
 
Ok, please see address on top : I would like address to fit in a single cell:

upload_2017-11-24_20-19-18.png
 

Attachments

  • upload_2017-11-24_20-19-18.png
    upload_2017-11-24_20-19-18.png
    81.7 KB · Views: 511
  • #10
So : Safety Lock
1713 Second Avenue
New York...All fitting in a single cell in Excel.
 
  • #11
ummm...

maybe I'm not reading this right...

doesn't "alt + enter" get you there?

Or just put them in many vertical cells and then merge the cells at the end. (I used to hate merge cells back when I used excel a lot but every now and then you actually needed it.)
 
  • Like
Likes Asymptotic and berkeman
  • #12
Thanks all,
In case anyone is interested, this worked
I had the text written in a Word document, copied it there, then pasted it into : "Cell Indicator":

upload_2017-11-24_20-51-34.png


i.e., where the "fx" is.
 

Attachments

  • upload_2017-11-24_20-51-34.png
    upload_2017-11-24_20-51-34.png
    42.8 KB · Views: 697
  • Like
Likes Asymptotic and berkeman
  • #13
Another approach is to set up a cell to concatenate text contained in source columns like so.
Caveat: I'm using LibreOffice Calc; Excel formulas can be somewhat different.

In this example cells A1 through E1 contain elements of the postal address, and cell F2 contains the formula.
  • ASC(cell) returns the specified cell's text value.
  • & is used to tie individual text strings together.
  • CHAR(10) is the ASCII code value for LF (line feed/new line). This is what the Alt-Enter key combo does.

Combine_text1.jpg
To separate "City" and "State" fields with a comma, substitute a comma for the appropriate line feed.
Combine_text2.jpg
 

Attachments

  • Combine_text1.jpg
    Combine_text1.jpg
    16.4 KB · Views: 949
  • Combine_text2.jpg
    Combine_text2.jpg
    24.3 KB · Views: 957
  • Like
Likes WWGD
  • #14
Asymptotic said:
Another approach is to set up a cell to concatenate text contained in source columns like so.
Caveat: I'm using LibreOffice Calc; Excel formulas can be somewhat different.

In this example cells A1 through E1 contain elements of the postal address, and cell F2 contains the formula.
  • ASC(cell) returns the specified cell's text value.
  • & is used to tie individual text strings together.
  • CHAR(10) is the ASCII code value for LF (line feed/new line). This is what the Alt-Enter key combo does.

View attachment 215684To separate "City" and "State" fields with a comma, substitute a comma for the appropriate line feed.
View attachment 215685
Excellent, man, thanks!. I would even suggest a new subforum for Excel, given how many people use it , and how versatile it can be.
 
  • Like
Likes Bystander
  • #15
WWGD said:
Excellent, man, thanks!. I would even suggest a new subforum for Excel, given how many people use it , and how versatile it can be.
It was a pleasure. Don't know that Excel rates a sub-forum, but perhaps rather a sticky thread for sharing tips on how Excel and other spreadsheets can be used in technical and scientific applications.
 

Similar threads

Replies
19
Views
3K
Replies
5
Views
13K
Replies
14
Views
5K
Replies
20
Views
1K
Replies
4
Views
3K
Replies
2
Views
4K
Replies
2
Views
3K
Back
Top