+ Reply to Thread
Results 1 to 8 of 8

Rearrange different numbers from different rows in one row and in consecutive columns

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    3

    Rearrange different numbers from different rows in one row and in consecutive columns

    Hi excel experts,hv a question hope someone can help me...
    i need to rearrange different numbers from different rows into one row and in consecutive columns
    current aspect of my table:
    0 1 2 3 4 5 7 8 10
    TSE1 TBE1 TNM1 TST1 TBE2 TSMF TTM1 TNMF TSE2
    X

    6 11 12 13 14 16 17 18 20 21 22 23 24 25 26 27 28 39 50 51 52 58
    CS07 CB80 CS80 CT61(37) CL80 CS81 CS03 CS01 CS04 DT30 CS12 CB07 CC37 AB01 RB01 CC30 CC54 AL16 PS01 PS02 PS03 CC61
    x

    15 45 46 47 49 53 54 55 61 63 64 65 66 67 68 69 83 93 94
    CS05 GP01 GP02 PP01 PS04 QP01 QS02 QS03 AS12 AC37 AP16 AP26 DT28 AL20 GP03 FSZ3 GP04 RP01 RP02
    x

    29 30 31 32 33 34 35 36 37 41 42 60 62 95 96 99
    ER02 NM60 ED09 EP01 EN12 EM02 ER01 ENMX EM03 EM82 EM61 FEP9 EP02 EHT1 EBP1 EHM1
    X X X
    desired result:
    2 6 30 31 32 61

    is that possible ?
    plz find attached an example file
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    Hi,

    One way - change the C5:X23 range as necessary or better still set it with a variable that detects the data range

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    @ Richard,

    I was going to write some VBA for this problem but decided to see if I could do it using Array formulas. I got so close using Min and Max but am having problems solving it with Small( If(arrays), Columns()-2). What am I missing?? I can use the Array formulas with Min and Max but I'm missing the Small conversion. See the attached and I've got the green cells figured. Now how about using Small for the yellow cells.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    02-26-2014
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    Tks richard for ur reply,
    i'm not gd with with macros,is it possible to hv the answer with formulas.
    Regards

  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: Rearrange different numbers from different rows in one row and in consecutive columns

    @MarvinP

    Apologies for butting in, since I see that your question was aimed at Richard, but I think you can use this array formula**:

    =SMALL(IF($C$3:$X$23="X",$C$1:$X$21),COLUMNS($A:A))

    and drag to the right.

    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/

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    @xor

    Again...nice!

    Been a good day for array formulae....

  7. #7
    Registered User
    Join Date
    02-26-2014
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    Tks again guys for ur help,the solution proposed by XOR was a gr8 help.Thank you XOR .
    well, till next time...!
    Hv a nice day

  8. #8
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Rearrange different numbers from different rows in one row and in consecutive columns

    Try this...
    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. Replies: 3
    Last Post: 06-27-2013, 08:03 AM
  2. Rows of Users to rearrange in Columns
    By dgdamay in forum Excel General
    Replies: 3
    Last Post: 09-18-2012, 07:28 AM
  3. Fill columns with formulas containing non-consecutive numbers
    By dmva in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-09-2010, 05:20 PM
  4. Rearrange info in rows to columns - HELP!
    By LaVerne in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 04:40 PM
  5. Rearrange info in rows to columns - HELP!
    By LaVerne in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 04:39 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