+ Reply to Thread
Results 1 to 15 of 15

Arrange set of data from vetical to horizontal by category

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Arrange set of data from vetical to horizontal by category

    Hello,

    I am looking for a help in either vba or excel formulas to convert a set of categorized data vertically to horizontal by category.
    Appreciate the support.

    attached photo for an example:

    Capture.PNG
    Last edited by whallak; 02-16-2019 at 12:47 PM.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Arrange set of data from vetical to horizontal by category

    Try this code
    Please Login or Register  to view this content.
    Similar issue at this link
    https://www.excelforum.com/excel-pro...sheet-2-a.html
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Arrange set of data from vetical to horizontal by category

    This macro assumes that your headers are in row 1 and the data starts in row 2. The result will be placed in Sheet2.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Arrange set of data from vetical to horizontal by category

    Thank you Yasser, this was very helpful.

    I noticed that once the data are plotted on Column E, they are plotted by order of existence as available in range B.
    Would it be possible to have them plotted by alphabetical order ?

    Instead of having A,C,B,D,E
    to have A,B,C,D,E, etc...

    check the attached photoCapture.PNG

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Arrange set of data from vetical to horizontal by category

    Can you attach a sample workbook so as to be easier to work on?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Arrange set of data from vetical to horizontal by category

    Try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Arrange set of data from vetical to horizontal by category

    here is the workbook

    Thank you
    Attached Files Attached Files

  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
    81,016

    Re: Arrange set of data from vetical to horizontal by category

    Get the Power Query add-in - it will be simple then.
    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.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Arrange set of data from vetical to horizontal by category

    Please Login or Register  to view this content.
    Last edited by jindon; 02-18-2019 at 05:48 AM.

  10. #10
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Arrange set of data from vetical to horizontal by category

    Hello Jindon,

    It is still not plotting them by alphabetical order. And it would be better to plot the data on the same sheet cell(1,8).

    attached workbook if needed.

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Arrange set of data from vetical to horizontal by category

    Alphabetical order?
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Arrange set of data from vetical to horizontal by category

    yes if you check the below photo, the plotting in the new sheet starts with the first category, and not by alphabetical order (a,b,c,d,...)

    check the photo:
    Capture.PNG

    Quote Originally Posted by jindon View Post
    Alphabetical order?
    Please Login or Register  to view this content.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Arrange set of data from vetical to horizontal by category

    1)
    Don't quote whole posts -- it's just clutter.
    If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    2) Which one are you talking about?
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-18-2013
    Location
    KSA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Arrange set of data from vetical to horizontal by category

    Wonderful,

    Thank you for the support, and also for the guidance. That is my second day here, good to know such guidelines.

    Regards,

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Arrange set of data from vetical to horizontal by category

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 07-04-2018, 06:00 AM
  2. Re: Arrange horizontal data to be vertical
    By markland in forum Excel General
    Replies: 2
    Last Post: 12-16-2015, 10:49 AM
  3. Arrange horizontal data to be vertical
    By markland in forum Excel General
    Replies: 4
    Last Post: 12-15-2015, 12:04 PM
  4. Re-arrange data from vertical to horizontal
    By Haha88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2015, 02:37 AM
  5. Replies: 2
    Last Post: 06-09-2015, 09:25 PM
  6. VBA Program to arrange data at a category Level
    By navs8603 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-02-2011, 10:45 AM
  7. Transpose names from horizontal to vetical
    By zbor in forum Excel General
    Replies: 8
    Last Post: 09-21-2009, 09:35 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