+ Reply to Thread
Results 1 to 24 of 24

Underneath name to be in a separate column arranged in order

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Underneath name to be in a separate column arranged in order

    Hi,

    I have a list of data extracted from a software in a "Data" worksheet.For Simplicity,I have highlighted with yellow with blue font for the data to be transposed in the separate column in C which I have shown in another worksheet 'Result'.

    I have a large data sets similar like this.

    Currently,I am using recent Excel 2021 .
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Underneath name to be in a separate column arranged in order

    Hi Paradise,

    Find the attached sheet with a helper column and manual work it worked out , Keep looking for better alternative
    Punnam
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Hopefully,short and sweet alternative formula would be preferred and that would go in one shot.Dynamic array formula of Excel 365/2021 would be preferred which make much easier than earlier version.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,048

    Re: Underneath name to be in a separate column arranged in order

    worksheet name : Result

    Try Cell C7 array formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by wk9128; 10-24-2021 at 04:15 AM.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    In Result,worksheet,result in C7,C9 and C10 seems to be fine.

    But in C8 the result should have been "Facebook /Oracle/Google" instead of "Facebook".This part seems to be hard as the said formula has not pulled.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,048

    Re: Underneath name to be in a separate column arranged in order

    @paradise2sr Can you accept this? POST#4 FacebookOracleGoogle, otherwise need to use VBA code

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Sure,I will accept.I would love to get both options as per post#6 including VBA if possible.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,048

    Re: Underneath name to be in a separate column arranged in order

    Do you have OFFICE 2019 or 365? The text concatenation pair version is relatively low, Otherwise must customize the VBA code function, VBA can solve this problem

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Underneath name to be in a separate column arranged in order

    The OP has already said that they are using Excel 2021 (this is the latest desktop version, released alongside Windows 11, and contains the new dynamic array functions).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2504 and WPS V2024(12.1.0.18543)
    Posts
    4,048

    Re: Underneath name to be in a separate column arranged in order

    Very Good

    TEXTJOIN function

    worksheet name : Result

    Try Cell C7 array formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    user-defined functions VBA

    Cell C7 array formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by wk9128; 10-26-2021 at 01:02 PM.

  11. #11
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    There is an issue
    Please Login or Register  to view this content.
    When I add data further,say adding data A17:M17,it is displaying wrong result in Result worksheet C11.Hence,combinedly B11&E11 are unique.

    Wrong Result-Hotmail/Microsoft Corporation/Hotmail/Facebook
    Correct Result-Hotmail/Facebook

    Pls note in 'Result'worksheet B column data might be repeated but E column SN No. are unique.

    Hence,kindly revised accordingly.
    Attached Files Attached Files

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

    Re: Underneath name to be in a separate column arranged in order

    Please try

    PHP Code: 
    =LET(z,Data!A7:M23,y,FILTER(z,INDEX(z,,1)),t,SUBSTITUTE(SUBSTITUTE(FILTERXML(SUBSTITUTE(CONCAT(IF(INDEX(z,,1),"</m><m>"," "&SUBSTITUTE(INDEX(z,,2)," ","_"))),"/m","x",1)&"</m></x>","//m")," ","/"),"_"," "),
    s,SEQUENCE(,14),SORTBY(CHOOSE(SEQUENCE(,14),y,y,y,y,y,y,y,y,y,y,y,y,y,t),IF(s=14,2,s))) 
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Thanx Bo_Ry

    You seems to be have done a wonderful work.Your Post #12 almost worked very well as expected.

    When there is word like "Python & Sheet" instead of "Python Sheet",in Data Worksheet at B8 used. It shows #Value! error.Can you figure out why does this happen.When "&" omitted,I get the desired result.As there are some items in which word "&" is used.

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

    Re: Underneath name to be in a separate column arranged in order

    try

    PHP Code: 
    =LET(z,Data!A7:M23,y,FILTER(z,INDEX(z,,1)),t,SUBSTITUTE(SUBSTITUTE(FILTERXML(SUBSTITUTE(CONCAT(IF(INDEX(z,,1),"</m><m>"," "&SUBSTITUTE(SUBSTITUTE(INDEX(z,,2),"&","&amp;")," ","_"))),"/m","x",1)&"</m></x>","//m")," ","/"),"_"," "),
    s,SEQUENCE(,14),SORTBY(CHOOSE(SEQUENCE(,14),y,y,y,y,y,y,y,y,y,y,y,y,y,t),IF(s=14,2,s))) 
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Great work.Many Many Thanks to u.

    Lastly,I want some interpretation of the formula,if u wish to share.

    1.If I want to increase or decrease the range,where should I change in the formula.

    2.Number used in formula 1,2,14- indicates what ?

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

    Re: Underneath name to be in a separate column arranged in order

    increase or decrease the range Data!A7:M23

    14 number of total columns

    IF(s=14,2,s) new order for Item name column

  17. #17
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Thanx a lot.

  18. #18
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Can you let me know, when I use Unique function in another worksheet from the result that has been received from above formula,it is not extracting data .

    Is there any restriction in New Excel 2021.

    Kindly let me know.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Underneath name to be in a separate column arranged in order

    What EXACTLY have you tried?

    Works fine here using the attachment to post #14:

    AliGW on MS365 Insider (Windows) 32 bit
    B
    1
    2
    Gypsum Company, Indiana
    3
    World International Agency
    4
    Yahoo Inc.
    5
    Microsoft Corporation
    6
    Sheet: Sheet1

    AliGW on MS365 Insider (Windows) 32 bit
    B
    2
    =UNIQUE(Result!B7:B11)
    Sheet: Sheet1

  20. #20
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Oh!I got.

    Finally thanx for everyone who directly & indirectly helped me .

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Underneath name to be in a separate column arranged in order

    You are welcome. You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  22. #22
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Hi Bo_Ry,

    I am re-opening this thread for a while.

    Referring to the earlier solution received and info. as per the Post # 14 & 16,I have currently added a column in Data sheet and changes accordingly references.But I have received a #Value! error.Kindly figure out where I have made wrong.

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Underneath name to be in a separate column arranged in order

    try

    PHP Code: 
    =LET(z,Data!A7:N25,y,FILTER(z,INDEX(z,,2)),t,SUBSTITUTE(SUBSTITUTE(FILTERXML(SUBSTITUTE(CONCAT(IF(INDEX(z,,2),"</m><m>"," "&SUBSTITUTE(SUBSTITUTE(INDEX(z,,3),"&","&amp;")," ","_"))),"/m","x",1)&"</m></x>","//m")," ","/"),"_"," "),
    s,SEQUENCE(,15),SORTBY(CHOOSE(SEQUENCE(,15),y,y,y,y,y,y,y,y,y,y,y,y,y,y,t),IF(s=15,3,s))) 
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Underneath name to be in a separate column arranged in order

    Thanx a lot.

+ 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. [SOLVED] Symmetrical Data in Column to be arranged in Rows
    By haroonkhurshid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2021, 12:29 PM
  2. Script to Copy from Column B and past in new Row underneath Column A
    By WildSpreadsheets in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-25-2019, 03:27 PM
  3. Formula to sum two separate transaction types (random order) from one column
    By leerosario in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2016, 05:03 PM
  4. [SOLVED] Macro to to enter value underneath last row in the last column
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-04-2014, 04:52 PM
  5. Replies: 0
    Last Post: 05-17-2012, 12:59 PM
  6. Vertical to horizontal one column and underneath
    By vinaynaran in forum Excel General
    Replies: 2
    Last Post: 10-14-2009, 01:02 PM
  7. macro to copy a column and put it underneath another
    By cadalist in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2007, 06:59 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