+ Reply to Thread
Results 1 to 14 of 14

Horizontal to Vertical Data Visualization

  1. #1
    Registered User
    Join Date
    07-11-2019
    Location
    Karachi
    MS-Off Ver
    2013
    Posts
    4

    Horizontal to Vertical Data Visualization

    I want to change the layout of data as per following scenario:-

    Current
    Region Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
    Region-A 1 5 6 4 7 8 10 3 6 9 7 10
    Region-B 3 6 9 8 10 3 3 6 9 7 6 4


    Required
    Region Month Sales
    Region-A Jan 1
    Region-A Feb 5
    Region-A Mar 6
    Region-A Apr 4
    Region-A May 7
    Region-A Jun 8
    Region-A Jul 10
    Region-A Aug 3
    Region-A Sep 6
    Region-A Oct 9
    Region-A Nov 7
    Region-A Dec 10
    Region-B Jan 3
    Region-B Feb 6
    Region-B Mar 9
    Region-B Apr 8
    Region-B May 10
    Region-B Jun 3
    Region-B Jul 3
    Region-B Aug 6
    Region-B Sep 9
    Region-B Oct 7
    Region-B Nov 6
    Region-B Dec 4

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Horizontal to Vertical Data Visualization

    Hello and welcome to the forum.

    I would use Power Query for this.

    1) Highlight A1:M3 > Data > From Table > OK
    2) Transform > With the Region column selected, Unipvot Columns > Unpivot Other Columns
    3) Rename Columns
    4) Home > Close & Load

    See attachment.
    Attached Files Attached Files

  3. #3
    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,647

    Re: Horizontal to Vertical Data Visualization

    Welcome to the forum.

    You could use PowerQuery to pivot the data. If you need help with that, attach a workbook.
    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.

  4. #4
    Registered User
    Join Date
    07-11-2019
    Location
    Karachi
    MS-Off Ver
    2013
    Posts
    4

    Re: Horizontal to Vertical Data Visualization

    Doesn't have Power Pivot in my Excel 2013.

    Any other alternatives?

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Horizontal to Vertical Data Visualization

    Not power pivot, power query.

    You can download it as an add-in for free directly from the Microsoft site.

  6. #6
    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,647

    Re: Horizontal to Vertical Data Visualization

    It's called Get & Transform - you will find it on the Data ribbon. It should be there in Excel 2013 - no need to download an add-in.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Horizontal to Vertical Data Visualization

    Ali, I believe Get & Transform was not included until 2016.

    Unless I am mistaken, PQ has to be downloaded for 2010 and 2013.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Horizontal to Vertical Data Visualization

    If you want to use formulas for this, with your data in A1:M3, you can use these:

    O2 =INDEX(A:A,INT((ROWS($1:1)-1)/12+2))

    P2 =INDEX($1:$1,MOD(ROWS($1:1)-1,12)+2)

    Q2 =INDEX($B$2:$M$3,MATCH(O2,A$2:A$3,0),MATCH(P2,B$1:M$1,0))

    See attachment.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-11-2019
    Location
    Karachi
    MS-Off Ver
    2013
    Posts
    4

    Re: Horizontal to Vertical Data Visualization

    I have Power Query now.

    Please help solving this through Power Query.

    Thanks in advance.

  10. #10
    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,647

    Re: Horizontal to Vertical Data Visualization

    Quote Originally Posted by 63falcondude View Post
    Ali, I believe Get & Transform was not included until 2016.

    Unless I am mistaken, PQ has to be downloaded for 2010 and 2013.
    Yes, my mistake.

  11. #11
    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,647

    Re: Horizontal to Vertical Data Visualization

    See post #2 for your PowerQuery solution.

  12. #12
    Registered User
    Join Date
    07-11-2019
    Location
    Karachi
    MS-Off Ver
    2013
    Posts
    4

    Re: Horizontal to Vertical Data Visualization

    Great....it's done.

    Thanks 63falcondude & AliGW & ofcourse Excel Forum :-)

  13. #13
    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,647

    Re: Horizontal to Vertical Data Visualization

    Great! PowerQuery is a great thing to have in your toolbox.

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

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Horizontal to Vertical Data Visualization

    You're welcome. Glad we could help.

+ 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: 16
    Last Post: 06-01-2017, 06:01 PM
  2. Horizontal Data to Vertical
    By mmagnin in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-18-2014, 12:45 AM
  3. [SOLVED] Horizontal data in vertical
    By ashfaquebwd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2013, 03:50 AM
  4. Vertical to Horizontal data help!
    By hbrown78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2012, 09:57 PM
  5. [SOLVED] Data horizontal to vertical
    By sureshpunna in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2012, 03:36 AM
  6. Transposing Data from Horizontal to Vertical
    By OTexcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2012, 08:28 PM
  7. [SOLVED] Vertical to Horizontal data
    By trosasco in forum Excel General
    Replies: 5
    Last Post: 06-15-2012, 08:48 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