+ Reply to Thread
Results 1 to 4 of 4

Need help to Arrange and Present data in tubular format using VBA

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    66

    Question Need help to Arrange and Present data in tubular format using VBA

    I've tried to search for a similar code on the internet but maybe i'm not using the correct combination of words.

    I have a set of data that needs to be presented in a tabular format. Excel does have the option of pivot however even after doing a pivot theres loads of formatting and merge cells done on the data from pivot to make it look presentable. I have a feeling that the output can be achievable using VBA and hence need some expertise on this matter.

    I've attached a sample workbook (I use Excel 2013). Sheet 1 contains Raw Data and Sheet 2 contains the output where i've included both the Pivot table as well as the formatted table which is the actual end output.

    Any help on this would be highly appreciated.
    Attached Files Attached Files

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

    Re: Need help to Arrange and Present data in tubular format using VBA

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

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Need help to Arrange and Present data in tubular format using VBA

    Simply Wow. Jindon your code perfectly replicates my output. I read through the code however couldn't apprehend how it works so flawlessly.. probably because the code is at an advanced level and I'm just a beginner at VBA. If its not too much trouble would it be possible to briefly explain what each section of the code does as it would help me to do some self learning. Thanks again.

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

    Re: Need help to Arrange and Present data in tubular format using VBA

    Brief explanation.

    1) Store all the information in objects, SortedList, ArrayList, Dictionary.
    2) Prepare output array to transform and place individual data in appropriate position in an array.
    3) Cosmetic the format in the second sub.

    Google about the objects for details.

+ 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] Arrays incorrect in macro to re arrange data into table style format
    By antonio32 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-29-2017, 03:55 PM
  2. [SOLVED] Auto Hiding rows based on range/data present or not present.
    By raze in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-10-2013, 11:27 AM
  3. Replies: 4
    Last Post: 01-12-2013, 02:42 PM
  4. Re-arrange headers and data to format for upload
    By taichi56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 04:02 PM
  5. How To Arrange Data Into Transposed Format?
    By fredmeister in forum Excel General
    Replies: 3
    Last Post: 07-21-2010, 08:55 AM
  6. Conditional Format if data present
    By jpkeller55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 01:21 PM

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