+ Reply to Thread
Results 1 to 3 of 3

crosstab table into flat table

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    belgium
    MS-Off Ver
    Excel 2013
    Posts
    2

    crosstab table into flat table

    I wanted to convert the file crosstabs2 into a flatfile like is done in the kong example. However, I was not able to understand the steps taken in the kong file and was not able to transfer the steps into the crosstabs2 file.

    Can anyone help me with the VBA code for:
    - transferring the crossfiles into flat file
    - coding where the file might stop -> this crosstabs2 file might change in format so the code should know where to start and stop and adjust to changes.

    In this description you can find the different steps needed to do this:
    A1 frage
    +1down to "interest"
    +1down
    IF text = "interest category"
    +2down = start list "categories"
    down util text is 'total'
    IF total +1down = no text
    THEN total +2down = new 'Frage'
    -> loop same steps until no more Frage in text after 2down after 'total'
    IF total +1down = text
    THEN total +1down = "interest category"
    -> loop same steps from last "interest category" starting point

    IF no text -> +1down = "interest category"
    +2down = start list "categories"
    down until text is 'total'
    'total' +2down is new 'Frage'
    -> loop same steps until no more Frage in text after 2down after 'total'

    Thanks,
    Frederic.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: crosstab table into flat table

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    belgium
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: crosstab table into flat table

    thanks.
    Hereby the kong file as desired example (after clicking the button) and the workfile macros on which a similar code needs to run...
    this could change number of values in rows and colums..

    thanks,
    frederic.
    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. Trying to convert to a flat table for pivot analysis
    By Vaslo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2013, 07:03 PM
  2. Replies: 3
    Last Post: 11-02-2012, 06:45 PM
  3. Macros to change cross tab to flat list table
    By jtd84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2012, 06:12 PM
  4. [SOLVED] Excel Pivot Table Plugin? (crosstab to data table)
    By HoMoon115 in forum Excel General
    Replies: 0
    Last Post: 02-22-2006, 04:25 PM
  5. Data sorting a crosstab table
    By Michael Curry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2005, 11:05 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