+ Reply to Thread
Results 1 to 22 of 22

Changing Vertical Data Format to Horizontal

  1. #1
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Question Changing Vertical Data Format to Horizontal

    I need help in Excel to get the data with Criteria. Value are written vertically in Excel sheet as like below.

    AA
    2
    BB
    4
    CC
    6
    AA
    8

    Output i want As below like AA and it's value in different column with Max value from master data.
    AA 8
    BB 4
    CC 6

    Please help
    Last edited by AliGW; 01-05-2023 at 05:25 AM. Reason: Thread title improved - please make your thread titles explicit & not generic in future.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Changing Vertical Data Format to Horizontal

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    Try:

    =LET(L,A2:A8,N,A3:A9,A,UNIQUE(FILTER(L,ISTEXT(L))),B,BYROW(A,LAMBDA(x,MAX(FILTER(N,L=x)))),HSTACK(A,B))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Changing Vertical Data Format to Horizontal

    Or this if you want the data in order alphabetically:

    =LET(L,A2:A8,N,A3:A9,A,UNIQUE(FILTER(L,ISTEXT(L))),B,BYROW(A,LAMBDA(x,MAX(FILTER(N,L=x)))),SORTBY(HSTACK(A,B),A,))

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    If they need to be sorted, you can also do it inside A:

    =LET(L,A2:A8,N,A3:A9,A,SORT(UNIQUE(FILTER(L,ISTEXT(L)))),B,BYROW(A,LAMBDA(x,MAX(FILTER(N,L=x)))),HSTACK(A,B))

    same result... a little shorter.

  6. #6
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by Glenn Kennedy View Post
    Try:

    =LET(L,A2:A8,N,A3:A9,A,UNIQUE(FILTER(L,ISTEXT(L))),B,BYROW(A,LAMBDA(x,MAX(FILTER(N,L=x)))),HSTACK(A,B))
    I posted the example here. Vertical data is having in more than 350 row. and it need to be lookup as i requested.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    1. Where did you request a LOOKUP?

    2. My formula will work, if your sample was realistic.

    3. If not, post a REALISTIC sample, in an Excel file.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Changing Vertical Data Format to Horizontal

    Just extend the ranges to suit.

  9. #9
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by Glenn Kennedy View Post
    1. Where did you request a LOOKUP?

    2. My formula will work, if your sample was realistic.

    3. If not, post a REALISTIC sample, in an Excel file.
    I want data in Report sheet in used column from master sheet. There is 0 value also but need the highest one.
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    So. Your sample was unrealistic. I'm still not sure what you want - as you provided NO expected answers!!

    =LET(L,Master!C2:C66,N,Master!C4:C68,A,FILTER(L,ISNUMBER(SEARCH("data",L))),B,BYROW(A,LAMBDA(x,IFERROR(FILTER(N,(L=x)*(N<>0)),""))),HSTACK(A,B))

    see file. make sure the area where you want to see the results is EMPTY
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Changing Vertical Data Format to Horizontal

    In Master sheet in D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And in Report sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  12. #12
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Thanks, but its very complicated and i am not able to apply on my actual sheet. Is it possible to do with Index and Match function?

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    Who are you talking to?

  14. #14
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by Glenn Kennedy View Post
    Who are you talking to?
    Thanks, but its very complicated and i am not able to apply on my actual sheet. Is it possible to do with Index and Match function?

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    upload a file with EXPECTED results. I don't want to misinterpret you again.

  16. #16
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by tanasedn View Post
    In Master sheet in D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And in Report sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This not works. Its not giving highest value for two value of same reference its give 0.

  17. #17
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by Verm362 View Post
    This not works. Its not giving highest value for two value of same reference its give 0.
    Can you check report sheet column B. I am getting 0 as well because reference cell have more than one value from master sheet. Can you please help me correct the formula.
    Attached Files Attached Files

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    I do not want a non-working formula. Upload a sheet with EXPECTED results.

  19. #19
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by Glenn Kennedy View Post
    I do not want a non-working formula. Upload a sheet with EXPECTED results.

    That is the sheet and i want same value which is reflect in column B but instead of 0 there should be some value which is there is master sheet for that particular reference

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Changing Vertical Data Format to Horizontal

    I have asked several times for expected answers. You have not provided them.

    Good luck, but I will not be helping you further.

  21. #21
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Changing Vertical Data Format to Horizontal

    The combination of lookup functions give you a first occurrence of the item in the list. You asked for max value and that is why I provided you a solution with Maxifs. You need to adjust the range accordingly.
    And it works, as you see in the attached file:
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    01-05-2023
    Location
    Bangalore
    MS-Off Ver
    O 365
    Posts
    9

    Re: Changing Vertical Data Format to Horizontal

    Quote Originally Posted by tanasedn View Post
    The combination of lookup functions give you a first occurrence of the item in the list. You asked for max value and that is why I provided you a solution with Maxifs. You need to adjust the range accordingly.
    And it works, as you see in the attached file:
    Thanks for your help will check this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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