+ Reply to Thread
Results 1 to 5 of 5

Group entries from an array, skipping the blanks

  1. #1
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Group entries from an array, skipping the blanks

    Hi all,

    I need a formula which picks entries from an array, skipping the blanks, and groups them left to right in the same order.
    In the example attached, the formulas should fill in the blue part.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Group entries from an array, skipping the blanks

    Hello guys,
    no one has ever answered me to this question and now I need it again... can anyone help?

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Group entries from an array, skipping the blanks

    Hi,

    In J1, array formula**:

    =IFERROR(INDEX($A1:$I1,SMALL(IF($A1:$I1<>"",COLUMN($A1:$I1)-MIN(COLUMN($A1:$I1))+1),COLUMNS($A:A))),"")

    Copy across and down as required.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

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

  4. #4
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Group entries from an array, skipping the blanks

    Thanks a lot!!

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Group entries from an array, skipping the blanks

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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