+ Reply to Thread
Results 1 to 6 of 6

List rows Left to Right into single column

  1. #1
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    List rows Left to Right into single column

    I have a need to list cells (F3:Q16), see attached file, into a single column (E21:E33) but WITHOUT sorting, just in the order they are in the matrix, starting with row1 and going left to right.

    Any help or ideas would be very much appreciated.

    Regards,
    JC

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: List rows Left to Right into single column

    Try the formula below, array-entered (confirm with Ctrl + Shift + Enter instead of Enter) into E21, then fill down through E42:

    =IFERROR(INDEX(RNG,INT(SMALL(IF(RNG<>"",ROW(RNG)+(0.01*COLUMN(RNG))),ROW(1:1))-2),100*(SMALL(IF(RNG<>"",ROW(RNG)+(0.01*COLUMN(RNG))),ROW(1:1))-TRUNC(SMALL(IF(RNG<>"",ROW(RNG)+(0.01*COLUMN(RNG))),ROW(1:1))))-5),"")

    It should automatically update as your "Frames" data is changed. See the attachment for assistance:
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: List rows Left to Right into single column

    Withdrawn by FR. Wrong thread.
    Dave

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: List rows Left to Right into single column

    One way...

    =IFERROR(INDIRECT(TEXT(SMALL(IF(RNG<>"",ROW(RNG)*10000+COLUMN(RNG)),ROWS($E$21:E21)),"\R000000\C0000"),0),"")

    Enter with Ctrl+Shift+Enter.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: List rows Left to Right into single column

    This solution uses a helper column. In column F of the attached array enter this formula in F21 and fill down until you get blanks. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then enter this regular formula in E21 and fill down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: List rows Left to Right into single column

    This approach does not use an array formula, but uses two simple helper columns. Put this formula in cell R3:

    =COUNTA(F3:Q3)

    and copy it down to the bottom of your data (R16) - it counts the number of entries for each row. Then put zero in cell S2 and this formula in S3:

    =IF(R3=0,"",R3+S2)

    and copy this down to S16 - this gives a cumulative sum of those counts.

    Then you can use this formula in cell E21 (I put it in G21 in the attached file):

    =IF(ROWS($1:1)>MAX(S:S),"",INDEX(RNG,MATCH(ROWS($1:1)-1,$S$2:$S$16),ROWS($1:1)-INDEX($S$2:$S$16,MATCH(ROWS($1:1)-1,$S$2:$S$16))))

    and copy this down as far as you need to.

    Hope this helps.

    Pete

+ 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: 2
    Last Post: 02-29-2016, 03:05 PM
  2. Replies: 9
    Last Post: 11-11-2015, 08:19 PM
  3. [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
  4. Replies: 4
    Last Post: 11-11-2012, 02:52 PM
  5. Replies: 4
    Last Post: 07-03-2012, 08:01 PM
  6. Replies: 5
    Last Post: 02-07-2012, 04:55 PM
  7. [SOLVED] left far column plus and minus signs that expand rows
    By Randy Starkey in forum Excel General
    Replies: 2
    Last Post: 06-17-2005, 04:05 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