+ Reply to Thread
Results 1 to 13 of 13

Create a column list out of table (rows and columns) while removing blanks

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Create a column list out of table (rows and columns) while removing blanks

    Hello all,

    I am trying to create a straight column list that can take the rows and columns of a table, and list only the nonblank items. The formula I am using only seems to work with one column, not multiple. Thanks!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by jackabs333; 05-26-2014 at 06:11 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    Try this...

    Data Range
    A
    B
    C
    D
    1
    List1
    List2
    Combined
    2
    1
    9
    1
    3
    2
    2
    4
    3
    5
    3
    10
    4
    6
    5
    7
    4
    6
    8
    5
    11
    7
    9
    6
    8
    10
    7
    9
    11
    12
    10
    12
    8
    11
    13
    12
    14
    ------
    ------
    ------
    ------


    This array formula** entered in D2:

    =IFERROR(IFERROR(INDEX(A:A,SMALL(IF(A$2:A$12<>"",ROW(A$2:A$12)),ROWS(D$2:D2))),INDEX(B:B,SMALL(IF(B$2:B$12<>"",ROW(B$2:B$12)),ROWS(D$2:D2)-COUNTIF(A$2:A$12,"<>")))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    Thank you sooo much Tony! You have saved me after HOURS of searching!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  5. #5
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    Sorry to bother you again, but I tried it on my actual page, and it is still placing some spacing between the characters. I attached a copy of the sheet. Thanks again for your help!
    Attached Files Attached Files

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    Change your formulas in columns A, B and C to remove the quotes " " from around the 0.

    Change "0" to 0.

    When you quote numbers they become TEXT strings. 0 and "0" are not the same!

    Then change the array formula** in E38 to:

    =IFERROR(IFERROR(INDEX(A:A,SMALL(IF($A$38:$A$49<>0,ROW($A$38:$A$49)),ROWS(E$38:E38))),INDEX(B:B,SMALL(IF($B$38:$B$49<>0,ROW($B$38:$B$49)),ROWS(E$38:E38)-COUNTIF($A$38:$A$49,"<>0")))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

  7. #7
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    Thanks a lot! That did it!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    Good deal. Thanks for the feedback!

  9. #9
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    If I may ask one more thing, I am obviously quite the noob. I tried to add the third column C to your formula, and it wont accept it no matter what I try! Would this require a nested IFERROR function or a nested IF function? I can't get it to work. It keeps saying I have too few arguments, even though all my parenthesis are in order. BTW, I swear this is the last question about this. Thanks.
    Last edited by jackabs333; 05-26-2014 at 08:38 PM.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    Like this...

    =IFERROR(IFERROR(IFERROR(INDEX(A:A,SMALL(IF($A$38:$A$49<>0,ROW($A$38:$A$49)),ROWS(E$38:E38))),INDEX(B:B,SMALL(IF($B$38:$B$49<>0,ROW($B$38:$B$49)),ROWS(E$38:E38)-COUNTIF($A$38:$A$49,"<>0")))),INDEX(C:C,SMALL(IF($C$38:$C$49<>0,ROW($C$38:$C$49)),ROWS(E$38:E38)-COUNTIF($A$38:$B$49,"<>0")))),"")

    Still array entered!

    As you can see, it's getting to be quite long. Hopefully that's all the columns that need to be consolidated.

  11. #11
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    Thanks again! How do I even begin to learn things like that!? I couldn't even search for the right stuff. I appreciate it!

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a column list out of table (rows and columns) while removing blanks

    Quote Originally Posted by jackabs333 View Post
    How do I even begin to learn things like that!?
    Well, you just did!

    Now you just need to remember it which is the hard part!

    What I do is I save everything I learn in small sample files. Then, when I need to do something I just look for the sample instead of starting from scratch.

  13. #13
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Create a column list out of table (rows and columns) while removing blanks

    Great Idea! I'll make a dropbox folder for Excel learning material

+ 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. Replies: 8
    Last Post: 06-15-2016, 09:53 AM
  2. [SOLVED] Creating Single Column List from multi-row/column table and removing blanks
    By ChemistB in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-10-2014, 02:23 PM
  3. removing blanks from a list
    By HPIMICHAEL02 in forum Excel General
    Replies: 3
    Last Post: 12-11-2012, 06:18 AM
  4. Removing Column Blanks and Producing New List
    By gazharry1 in forum Excel General
    Replies: 1
    Last Post: 10-04-2012, 03:15 PM
  5. Removing blank rows to create list
    By drs3eb in forum Excel General
    Replies: 6
    Last Post: 07-16-2010, 05:13 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