+ Reply to Thread
Results 1 to 6 of 6

sorting data in 1 column to rows

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Netherlands Rotterdam
    MS-Off Ver
    Microsoft 365 versie 2310
    Posts
    20

    sorting data in 1 column to rows

    I have a file where in column A I have an item number.
    In column B I have components that are part of this item number.
    In colum A the item nuber is repeated 7 or 8 times, each time with a different component.

    I would like to re-arrage the file to have the item number in column A en the components in colums B......I

    Please see enclosed file

    Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: sorting data in 1 column to rows

    Please try at A53:J57

    =INDEX($A$3:$B$47,MOD(COLUMNS(A53:$B53)-1,9)+ROWS(A$53:B53)*9-8,1+(COLUMNS($A53:A53)>1))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Netherlands Rotterdam
    MS-Off Ver
    Microsoft 365 versie 2310
    Posts
    20

    Re: sorting data in 1 column to rows

    Hi Bo-Ry,

    Thank you for your swift reply. I have tried your suggestion, but I can'get it to work yet.
    I am sure this is due to me but............

    I enclose a small part of the file I am trying to work with.
    I tried to work with your solution on page 2.

    The original file contains around 2400 rows.

    Would you be so kind as to have another look at it,

    Thanks for your help

    Peter
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: sorting data in 1 column to rows

    Bo_Ry's formula produced exactly the wished for results in the file attached to post #1.
    The file attached to post #3 is quite different and there is no wished for results given so that we might have something to go by when attempting to write formulas/code.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    Netherlands Rotterdam
    MS-Off Ver
    Microsoft 365 versie 2310
    Posts
    20

    Re: sorting data in 1 column to rows

    Sorry for not being clear before.

    I have created an example of the situation now and the wished situation in enclosed worksheet.

    Hopefully you can help me,

    Thanks in advance
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: sorting data in 1 column to rows

    Please try at E2
    =INDEX(NOW!$A$2:$I$22,ROWS(A$2:A2)*7-6+MAX(0,COUNTIF($A$1:A$1,"*,*")-1),IF(COLUMNS($A2:A2)>3,IFERROR(1/(1/MOD(COLUMNS($A2:A2),3))+3,9),COLUMNS($A2:A2)))
    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. Sorting 2 data ranges by comparing one column in each and sorting to match
    By MDKsmiffy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 03:30 PM
  2. Sorting Rows by Value in a column
    By The Monk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2013, 06:37 AM
  3. [SOLVED] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  4. Excel 2007 : Sorting Rows by Column
    By UdontKnowMe1107 in forum Excel General
    Replies: 0
    Last Post: 11-02-2011, 10:38 AM
  5. Excel 2007 : Sorting Rows of data into one column
    By Mike74 in forum Excel General
    Replies: 5
    Last Post: 04-26-2010, 03:38 PM
  6. Sorting Rows of Data By Column
    By yaahhuu in forum Excel General
    Replies: 1
    Last Post: 05-15-2009, 12:26 AM
  7. Sorting Rows Based on a Column Data
    By amtrane in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2007, 05:47 PM
  8. Replies: 1
    Last Post: 08-22-2006, 03:50 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