Ask Your Question
0

To display two cells contents together in another cell

asked 2012-02-26 10:16:33 +0200

hatalar205 gravatar image hatalar205
90 1 3 9

I want to display two cells contents together in another cell. It is easy with one cell, just use = and it is okey. But, can we display two or more cells together in one cell?

delete close flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
2

answered 2012-02-26 11:32:42 +0200

Pedro gravatar image Pedro flag of Portugal
3218 4 23 54

You can concatenate the contents of several cells using & Example: A1=Bad B1=Dog C1=A1&B1 = BadDog If you want to add a space between two text Values you need to type C1=A1&" "&B1 = Bad Dog (it's a space between the double quotes)

link delete flag offensive edit

Comments

This is what I want. Thanks.

hatalar205 ( 2012-02-26 12:20:04 +0200 )edit
2

answered 2012-03-01 13:00:33 +0200

bosyber gravatar image bosyber
78 1 9

In addition to the above answer: there is the CONCATENATE function, which is what I used so far, before seeing Pedro's answer.

Why use it as it is longer but seems to do the same? Discover-ability (for me) and being more explicit in what you are doing; would consider keeping CONCATENATE for macro's, for example.

link delete flag offensive edit

Comments

Interesting. But usually the text values don't include and ending space so concatenating with the function will result in a long word :)

Pedro ( 2012-03-01 20:37:19 +0200 )edit

True, that's why, just like with your answer, where you add '& " " &' for a space in between the cell references, you'd have to concatenate a space before every next word apart from the first one. As I said: functionally the same, but more verbose. I' be mostly using 'your' & way in future.

bosyber ( 2012-03-01 21:27:06 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-02-26 10:16:33 +0200

Seen: 2,080 times

Last updated: Mar 01 '12