# Excel nerds, help a sister out (please). Need to get multiple rows in one cell.

**URL:** <https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667>\
**Category:** Factual Questions\
**Created:** [May 7, 2013, 12:12am UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667 "2013-05-07T00:12:55Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![TroutMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troutman/32/6721_2.png) [@TroutMan](https://boards.straightdope.com/u/TroutMan)\
**Post date:** [May 7, 2013, 6:39pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/21 "2013-05-07T18:39:54Z")

</div>

I think a lot of people are missing that you want to concatenate values in _rows_, not columns. Copy/pasting to use the same formula for multiple cells will work if the relative position of your formula to the source cells is the same, but it’s tough to suggest an approach without knowing the complete layout of your spreadsheet.

I’d recommend trying **Jack Batty’s** suggestion of saving as CSV, but with an additional step up front. Select all the rows you want to concatenate, copy, then choose Paste Special and select the Transpose option. This will put the rows into columns so you have the right values all together.

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [May 7, 2013, 6:58pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/22 "2013-05-07T18:58:18Z")

</div>

> [@TroutMan](#):
>
> I think a lot of people are missing that you want to concatenate values in _rows_, not columns. Copy/pasting to use the same formula for multiple cells will work if the relative position of your formula to the source cells is the same, but it’s tough to suggest an approach without knowing the complete layout of your spreadsheet.
> 
> I’d recommend trying **Jack Batty’s** suggestion of saving as CSV, but with an additional step up front. Select all the rows you want to concatenate, copy, then choose Paste Special and select the Transpose option. This will put the rows into columns so you have the right values all together.

Agreed. I had seen the reference to concatenating from rows rather than columns, but as \*\*TroutMan \*\*says, without knowing the structure of your spreadsheet and exactly what you’re trying to do, it’s hard to give more specific advice.

---

<div class="post-metadata">

**Author:** ![MeanOldLady](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/meanoldlady/32/10737_2.png) [@MeanOldLady](https://boards.straightdope.com/u/MeanOldLady)\
**Post date:** [May 7, 2013, 7:15pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/23 "2013-05-07T19:15:05Z")

</div>

> [@TroutMan](#):
>
> I think a lot of people are missing that you want to concatenate values in _rows_, not columns. Copy/pasting to use the same formula for multiple cells will work if the relative position of your formula to the source cells is the same, but it’s tough to suggest an approach without knowing the complete layout of your spreadsheet.
> 
> I’d recommend trying **Jack Batty’s** suggestion of saving as CSV, but with an additional step up front. Select all the rows you want to concatenate, copy, then choose Paste Special and select the Transpose option. This will put the rows into columns so you have the right values all together.

Hmm, I tried Jack’s suggestion, transposed first to get the data in rows, but it still separates the info into separate cells.

I have a bunch of information in a column, each row has text in it. I want each entry from each row to be in one cell, separated only by semicolons. I don’t want to pull information from other columns. There’s only one column I’m dealing with and I want all of its contents, that is each entry from each row, to be in a single cell with a semicolon between each entry.

So instead of:

```auto

A
1
2
3
4

```

Etc, I want:

```auto

A
1; 2; 3; 4

```

Funny thing is I don’t need to know this anymore, really, but I’m curious and need to know so I can die a happy woman.

---

<div class="post-metadata">

**Author:** ![MeanOldLady](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/meanoldlady/32/10737_2.png) [@MeanOldLady](https://boards.straightdope.com/u/MeanOldLady)\
**Post date:** [May 7, 2013, 7:24pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/24 "2013-05-07T19:24:36Z")

</div>

> [@MeanOldLady](#):
>
> Hmm, I tried Jack’s suggestion, transposed first to get the data in rows, but it still separates the info into separate cells.

I should say the data is now in **a** row with each entry in a separate column.

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [May 7, 2013, 7:47pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/25 "2013-05-07T19:47:48Z")

</div>

> [@MeanOldLady](#):
>
> Hmm, I tried Jack’s suggestion, transposed first to get the data in rows, but it still separates the info into separate cells.
> 
> I have a bunch of information in a column, each row has text in it. I want each entry from each row to be in one cell, separated only by semicolons. I don’t want to pull information from other columns. There’s only one column I’m dealing with and I want all of its contents, that is each entry from each row, to be in a single cell with a semicolon between each entry.
> 
> So instead of:
> 
> ```auto
> 
> A
> 1
> 2
> 3
> 4
> 
> ```
> 
> Etc, I want:
> 
> ```auto
> 
> A
> 1; 2; 3; 4
> 
> ```
> 
> Funny thing is I don’t need to know this anymore, really, but I’m curious and need to know so I can die a happy woman.

Okay, that makes a lot more sense now. You actually only want one cell, with all the values concatenated. I would set up column B to be equal to the equivalent cell in col A plus whatever separator you want, e.g. the formula for cell B1 should be

```auto

=A1 & "; "

```

Note the extra space after the semicolon there, before the double quote. Drag that formula all the way down to the bottom of the range that contains the data, and you should have something like this:

```auto

A B
1 1;
2 2;
3 3;
4 4;

```

Then pick the cell where you want the final string to appear, and set the formula there equal to

=CONCATENATE(B1, B2, B3…)

until the end of the range. I’m afraid I don’t know any way to automate that process of filling in the formula other than typing it out, but at least this way you don’t have to also enter the semi-colons into the final concatenation.

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [May 7, 2013, 8:08pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/26 "2013-05-07T20:08:08Z")

</div>

> [@Dervorin](#):
>
> Then pick the cell where you want the final string to appear, and set the formula there equal to
> 
> =CONCATENATE(B1, B2, B3…)
> 
> until the end of the range. I’m afraid I don’t know any way to automate that process of filling in the formula other than typing it out, but at least this way you don’t have to also enter the semi-colons into the final concatenation.

Hmmm. Other, wiser people than I have had a crack at this and come up with less painful solutions. I’m not surprised. You might want to try the method outlined here ([http://gotochriswest.com/blog/2011/05/20/concatenating-a-range/](http://gotochriswest.com/blog/2011/05/20/concatenating-a-range/)), shifting everything over to the right by one column, and using the with-a-semicolon column B that I described above.

---

<div class="post-metadata">

**Author:** ![TroutMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troutman/32/6721_2.png) [@TroutMan](https://boards.straightdope.com/u/TroutMan)\
**Post date:** [May 7, 2013, 8:13pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/27 "2013-05-07T20:13:10Z")

</div>

Was the problem you were trying to avoid having to manually create a formula with so many cells? **Dervorin’s** suggestion is fine if you have a dozen or so cells where it isn’t too onerous to type B1, B2, B3, etc.

But if you have like 50 cells you want to concatenate, add a formula in B1 next to the first cell: =A1&"; “. Then in cell B2 add a formula =B1&A2&”; ". Copy that formula down through all the rest of the cells, and the final cell will have the complete formatted list.

ETA: or exactly like Dervorin linked to above. (Does that make me a wise person?)

---

<div class="post-metadata">

**Author:** ![MeanOldLady](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/meanoldlady/32/10737_2.png) [@MeanOldLady](https://boards.straightdope.com/u/MeanOldLady)\
**Post date:** [May 7, 2013, 8:25pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/28 "2013-05-07T20:25:08Z")

</div>

Sucess! Yes, the problem was I didn’t want to write out a long ass formula for a godzillion cells. This worked great. Thanks!

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [May 8, 2013, 2:11pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/29 "2013-05-08T14:11:09Z")

</div>

Just wanted to add: in case you are stuck on a related search in the future, the phrase that brought me to the Magical Fairy Land of Googly Goodness was “excel concatenate range”. This may prove useful to you some day, in some related set of circumstances, perhaps.

---

<div class="post-metadata">

**Author:** ![Inner\_Stickler](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/inner_stickler/32/318_2.png) [@Inner\_Stickler](https://boards.straightdope.com/u/Inner_Stickler)\
**Post date:** [May 8, 2013, 2:28pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/30 "2013-05-08T14:28:01Z")

</div>

It blows my mind that =concatenate(B1:B50) doesn’t work. Of course, I also don’t understand why I can use Paste Special if I’m copying but not if I’m cutting. Clearly I am not meant for excel.

---

<div class="post-metadata">

**Author:** ![HipGnosis](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@HipGnosis](https://boards.straightdope.com/u/HipGnosis)\
**Post date:** [May 9, 2013, 4:16pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/31 "2013-05-09T16:16:40Z")

</div>

Danggit, I’m a geek…  
I don’t do anything fun excel in excel anymore, so this entrigued me.

Assuming data is in A1-A50;  
Select cell B2.  
Type =A1:A50&", " in formula bar. Note the space between the comma and the closing parenthesis  
. Depending on your regional settings, you may need to use: =TRANSPOSE(A1:A50)&", " Press F9.  
Delete curly brackets in formula bar.  
Delete last delimiting character.  
Type =Concatenate( in front of all characters in formula bar.  
Type ) after last character in formula bar.  
Press Enter  
The cell data is concatenated w/ comma & a space seperators in B2

---

<div class="post-metadata">

**Author:** ![TroutMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troutman/32/6721_2.png) [@TroutMan](https://boards.straightdope.com/u/TroutMan)\
**Post date:** [May 9, 2013, 4:39pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/32 "2013-05-09T16:39:25Z")

</div>

Neat trick, I hadn’t seen that before. It’s not appropriate if you want the concatenation to be recalculated/refreshed when the source data changes, but for something like this it’s very useful. Thanks for the tip.

---

<div class="post-metadata">

**Author:** ![md2000](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@md2000](https://boards.straightdope.com/u/md2000)\
**Post date:** [May 9, 2013, 5:39pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/33 "2013-05-09T17:39:05Z")

</div>

Here’s my suggestion:  
You have:  
A  
1  
2  
3  
4  
5  
6

So in B: put formulas  
=A1  
=CONCAT(B1, "; ", A2)  
=CONCAT(B2, "; ", A3)  
=CONCAT(B3, "; ", A4)  
etc.

You can get the repeating formula (after the first row) same as mentioned for the others by dragging. The references to cells will adjust accordingly.

Basically - “The string above and add the cell at the left”.

The last cell should hav the result; convert to value with paste special.

---

<div class="post-metadata">

**Author:** ![MeanOldLady](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/meanoldlady/32/10737_2.png) [@MeanOldLady](https://boards.straightdope.com/u/MeanOldLady)\
**Post date:** [May 10, 2013, 2:07pm UTC](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667/34 "2013-05-10T14:07:01Z")

</div>

> [@HipGnosis](#):
>
> Danggit, I’m a geek…  
> I don’t do anything fun excel in excel anymore, so this entrigued me.
> 
> Assuming data is in A1-A50;  
> Select cell B2.  
> Type =A1:A50&“, " in formula bar. Note the space between the comma and the closing parenthesis  
> . Depending on your regional settings, you may need to use: =TRANSPOSE(A1:A50)&”, " Press F9.  
> Delete curly brackets in formula bar.  
> Delete last delimiting character.  
> Type =Concatenate( in front of all characters in formula bar.  
> Type ) after last character in formula bar.  
> Press Enter  
> The cell data is concatenated w/ comma & a space seperators in B2

Brilliant! Very easy so even I can do it.

> [@md2000](#):
>
> Here’s my suggestion:  
> You have:  
> A  
> 1  
> 2  
> 3  
> 4  
> 5  
> 6
> 
> So in B: put formulas  
> =A1  
> =CONCAT(B1, "; ", A2)  
> =CONCAT(B2, "; ", A3)  
> =CONCAT(B3, "; ", A4)  
> etc.
> 
> You can get the repeating formula (after the first row) same as mentioned for the others by dragging. The references to cells will adjust accordingly.
> 
> Basically - “The string above and add the cell at the left”.
> 
> The last cell should hav the result; convert to value with paste special.

Pretty similar to an earlier suggestion, but requires me to type fewer characters, which is always welcome!

These shortcuts are awesome for very long lists, but if you want to concatenate only four or five cells, copying and pasting might be faster. I wish Excel had a tool that allowed you to select the cells you’d like to concatenate, enter your delimiting character of choice, click OK, et voila. I also wish I had a pony.

Anywho, thanks guys! You’re all aces in my book.

[Previous page](https://boards.straightdope.com/t/excel-nerds-help-a-sister-out-please-need-to-get-multiple-rows-in-one-cell/657667.md?page=1)
