+ Reply to Thread
Results 1 to 6 of 6

Sorting an array of numbers into one column

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    45

    Sorting an array of numbers into one column

    Sorry guys, I think my task is rather simple but I can't think of a better way to do it other than manual operations.

    Basically I have an array of numbers randomly populating a range, lets say B1 to Z44, and it includes blanks. I want to have all the numbers piled into one column, eg. A1:A__, without the blanks. What would be the best way to do it, if possible without a macro? I imagine this should be rather simple...? Order of number is not important so long as every non-blank cell is included.

    Thank you very much in advance, any help is much appreciated.
    Last edited by chococ; 10-13-2014 at 05:14 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Sorting an array of numbers into one column

    Hi,

    a possible approach in A1 to be copied down

    Ascending order

    =IFERROR(SMALL(B$1:Z$44,ROW(A1)),"")



    Descending order

    =IFERROR(LARGE(B$1:Z$44,ROW(A1)),"")


    Cheers
    Last edited by canapone; 10-13-2014 at 04:58 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    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: Sorting an array of numbers into one column

    Check if this is useful for 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.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,038

    Re: Sorting an array of numbers into one column

    A1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down until you start getting blanks


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Sorting an array of numbers into one column

    Oh wow thank you SO VERY MUCH for the timely help, you guys are lifesavers!!

    Will mark thread as solved and add reputation. Many thanks again!!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,038

    Re: Sorting an array of numbers into one column

    If it's something you do regularly, this small VBA routine could save you some time:

    Please Login or Register  to view this content.

    Regards, TMS

+ 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. Sorting text in column and omitting numbers
    By tuna666 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 11:25 AM
  2. [SOLVED] Sorting an array of numbers from Low to High for worksheet Tabs
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 11:58 AM
  3. [SOLVED] Excel 2007 : Sorting column by numbers, lowest to highest
    By elryp3000 in forum Excel General
    Replies: 4
    Last Post: 06-07-2012, 11:24 AM
  4. Sorting numbers with #div/0! in column
    By Barking_Mad in forum Excel General
    Replies: 5
    Last Post: 10-20-2009, 08:23 AM
  5. sorting numbers in a column
    By kailuamike in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-18-2005, 11:10 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