+ Reply to Thread
Results 1 to 5 of 5

organizing numbers

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    organizing numbers

    Hello. I have numbers in a bunch of adjacents rows but the column length is different. For example two numbers, five numbers (in seperate cells) etc. How can I easily combine all of these numbers into one long column? Macro or regular excel.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: organizing numbers

    For that you use something like this:
    Formula: copy to clipboard
    =CONCATENATE(A1,B1,C1,D1)

    Adjust the cells to needs and you can have any number of cells in it.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,716

    Re: organizing numbers

    Assume your first column of Data is Column A, then

    Option Explicit
    
    Sub combo()
        Dim lr As Long, lc As Long, lra As Long
        lc = Cells(1, Columns.Count).End(xlToLeft).Column
        Dim i As Long
        
        Application.ScreenUpdating = False
        For i = 1 To lc
        lr = Cells(Rows.Count, i).End(xlUp).Row
        lra = Range("A" & Rows.Count).End(xlUp).Row
        Range(Cells(1, i), Cells(lr, i)).Copy Range("A" & lra + 1)
        Next i
        Application.CutCopyMode = False
        Application.ScreenUpdating = True
        MsgBox "complete"
    End Sub
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: organizing numbers

    This doesn't work. Spreadsheet attached.
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: organizing numbers

    This will combine the 4 columns that you have eliminating all blank cells:
    This is an ARRAY FORMUL so enter with Ctrl + Shift + Enter

    Formula: copy to clipboard
    =IFERROR(INDEX(column1,SMALL(IF(column1<>"",ROW(column1)-MIN(ROW(column1))+1),ROWS($1:1))),IFERROR(INDEX(column2,SMALL(IF(column2<>"",ROW(column2)-MIN(ROW(column2))+1),ROWS($1:1)-COUNT(column1))),IFERROR(INDEX(column3,SMALL(IF(column3<>"",ROW(column3)-MIN(ROW(column3))+1),ROWS($1:1)-(COUNT(column1)+COUNT(column2)))),IFERROR(INDEX(column4,SMALL(IF(column4<>"",ROW(column4)-MIN(ROW(column4))+1),ROWS($1:1)-(COUNT(column1)+COUNT(column2)+COUNT(column3)))),""))))
    Attached Files Attached Files
    Last edited by newdoverman; 05-05-2015 at 03:27 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Listing numbers from a column without organizing them
    By leprkon in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-21-2014, 02:47 PM
  2. [SOLVED] Organizing 1,2,3,4,6,7,8 etc to 1-4, 6-8
    By b0ttle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2014, 02:08 PM
  3. Organizing
    By JasonCrow in forum Excel General
    Replies: 3
    Last Post: 08-09-2009, 04:51 PM
  4. organizing problem
    By JasonCrow in forum Excel General
    Replies: 1
    Last Post: 08-09-2009, 04:23 PM
  5. organizing procedures
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2005, 07:55 PM

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