+ Reply to Thread
Results 1 to 5 of 5

How can I convert data from vertical format to a matrix in excel using VBA?

  1. #1
    Registered User
    Join Date
    03-06-2024
    Location
    Monterrey
    MS-Off Ver
    2312
    Posts
    1

    How can I convert data from vertical format to a matrix in excel using VBA?

    Hello,

    I have a series of datapoints in the format seen in the tab called "Vertical format" in the attached and I need a way to transform the data into the format shown in the "Matrix" tab.

    The data is transposed to have each company appear once with their corresponding datapoints appearing in different columns within the same row, not all companies have the same number of datapoints, so we would need a way to skip the blank column to ensure all datapoints are posted in the correct location.

    Many thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How can I convert data from vertical format to a matrix in excel using VBA?

    Welcome to the forum.

    With formula it goes like that:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: How can I convert data from vertical format to a matrix in excel using VBA?

    An alternative is to pivot the data as shown in the attached. Pivot Tables are an effective and easy way to show your data
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: How can I convert data from vertical format to a matrix in excel using VBA?

    Quote Originally Posted by Gerardo.Cantu View Post
    How can I convert data from vertical format to a matrix in excel using VBA?
    If you would like to use the excel functionality also (i.e. a mixed method) for this purpose (VBA solution), and not just VBA itself, then the basis of operation will be (as a primary consideration) appropriate data sorting - it will form the basis for all other data operations.

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

    Re: How can I convert data from vertical format to a matrix in excel using VBA?

    vba
    Please Login or Register  to view this content.
    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. [SOLVED] Convert Horizontal Data to a Vertical Format
    By skifiend in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-28-2018, 02:21 PM
  2. [SOLVED] Excel 2007 : How to convert data from vertical to horizontal
    By REHANSRSPL in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-28-2013, 01:16 AM
  3. [SOLVED] Macro to convert vertical data in horizontal format
    By ajang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2013, 06:03 PM
  4. Excel 2007 : How to convert data from vertical to horizontal
    By tiggi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2013, 07:19 AM
  5. How to Convert Matrix format data into tabular format data
    By nishchints in forum Excel General
    Replies: 1
    Last Post: 02-22-2012, 03:53 PM
  6. Convert data From Vertical to Horizontal Format
    By reyrey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2011, 03:52 PM
  7. Convert Excel From Horizontal To Vertical Format
    By masrizam in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-13-2009, 02:29 AM

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