+ Reply to Thread
Results 1 to 17 of 17

Sort column data separated by blanks into other column

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2016
    Location
    london, england
    MS-Off Ver
    2007
    Posts
    8

    Re: Sort column data separated by blanks into other column

    Quote Originally Posted by Glenn Kennedy View Post
    If you do not need backward compatability with old Excel versions...

    In B2, copied down as far as the last row:

    =IF(ISNUMBER(A2),1+B1,0)

    In D2, use this array formula, copied across and down:

    =IFERROR(INDEX($A:$A,SMALL(IF(B1:$B$317=ROWS($D$1:$D1),ROW(B1:$B$317)),COLUMNS($A:A))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    The issue I am facing now is, if I don't have 7 entries in the first group (ex by deleting 986 in A32 ); the index array formula shifts the last row towards the left (filled in red). Is there any way to record them as a group they belong.
    Attached Files Attached Files

+ 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. Evaluating rows column-by-column to separate comma-separated data
    By adventurepirate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2014, 03:06 PM
  2. Replies: 2
    Last Post: 09-26-2014, 04:28 PM
  3. Sort multiple columns to one column, skip blanks
    By AlexCoyne in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-20-2013, 03:13 PM
  4. Scan a Column A (numbers and blanks) and copy its contents WITHOUT BLANKS into Column B
    By bighandsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 05:16 PM
  5. Replies: 2
    Last Post: 02-02-2012, 09:02 AM
  6. [SOLVED] Returning most recent daily data in a column if blanks in column
    By InnesMcc in forum Excel General
    Replies: 6
    Last Post: 11-04-2011, 09:41 AM
  7. [SOLVED] Returning most recent daily data in a column if blanks in column
    By InnesMcc in forum Excel General
    Replies: 2
    Last Post: 11-04-2011, 06:28 AM

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