Very stupid question...

bigmacfann

New Member
Joined
Aug 26, 2005
Messages
42
I have a list. In column A1, there's a name. In column A2, there's a name. There are names all the way down to column A116. I would like instead of a column of names, just one cell with all of the names is column A to be separated by a comma. So, if my list was:

Column A
Mr. 1
Mr. 2
Mr. 3
Mr. 4
Mr. 5

How would I be able to get:

Column B
Mr. 1, Mr. 2, Mr. 3, Mr. 4, Mr. 5

Above column B is just cell B1. This may seem silly and easily remedied by just doing it manually, but I will soon have a list of more than 6000 names and I don't want to even think about doing that manually. Thank you very much in advance!
 

bridgesm

New Member
Joined
May 29, 2007
Messages
17
When I need to concatenate values from a vertical list into a horizontal list I tend to use this formula configuration:

If your values are in column A, starting by writing this formula in cell B1 '=A1'

Then in cell B2, write the formula: '=B1&", "&A2'

Then double click the fill handle to copy this down. The bottom cell should be the one you want!

This may not work for columns with 6000 entries, as Im not sure how many characters can be in a single cell. Excel 2007 may have capacity, but I think Excel 2003 can only have 1024 characters?
 

Forum statistics

Threads
1,081,513
Messages
5,359,226
Members
400,521
Latest member
smarty1995

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top