+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Create a single cell from a column of number

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    DAllas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Create a single cell from a column of number

    I need to create a single cell with a semicolon in between each number from a column of numbers. The list will continually vary in length. Is there a macro or formula that can do this?
    Example

    17020
    17021
    17030
    17031

    Result in a single cell is 17020;17021;17030;17031

    Thanks
    Last edited by stellm; 02-27-2012 at 06:57 PM. Reason: Solved

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create a single cell from a column of number

    Ηι

    Try this.

    =A1&";"&A2&";"&A3&";"&A4&";"&A5

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Create a single cell from a column of number

    you could add a row next to your current data row for example if your data is in Col A starting on row one:

    in B1 enter
    =A1

    in B2 and beyond enter

    =B1&";"&A2
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Create a single cell from a column of number

    hi
    put your data in column A select it and run this code
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  5. #5
    Registered User
    Join Date
    02-27-2012
    Location
    DAllas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Create a single cell from a column of number

    That does work. Is there anyway to automatically change the length or the amount of numbers in the formula? The list may very from 50 to 100? thanks

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Create a single cell from a column of number

    you could use a custom function based on the code that Tom provided as so:

    Please Login or Register  to view this content.
    then in your worksheet you could call it like this and select any range you needed

    =CombineRow(A1:A100)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1