+ Reply to Thread
Results 1 to 2 of 2

Transpose Data using SQL query

  1. #1
    Forum Contributor
    Join Date
    10-21-2010
    Location
    LONDON
    MS-Off Ver
    2007
    Posts
    108

    Transpose Data using SQL query

    Hi,

    I got a file which has Template name and numbers for it.It takes me around 2 HOURS to prepare data by using pivot table and pasting values using transpose. If anyone can provide a macro to perform this task quickly that would be great.

    I have attached the raw data under tab DATA, Output which I am looking for under "Output" tab.And Calculation is there under calculation tab.I have done the calculation of one Template name "aa20150330" and shown the output also.Can I export this data into Ms Access and run query to do this task. I know SQL query very well.


    Thanks

    Loving
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Transpose Data using SQL query

    If you are using ACCESS , then use a CROSSTAB query. (use the query wizard to build it)

    If the data is in Excel, then record a macro to build the Pivot table (or a Transpose). Make your changes in the macro.

+ 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] How to transpose a recordset from a MySQL query
    By FiscalCliff in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-04-2014, 07:30 AM
  2. [SOLVED] Excel Transpose query - VBA help requested
    By rodwhiteley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2012, 10:13 AM
  3. [SOLVED] Odd Transpose Query - likely requiring VBA solution
    By rodwhiteley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-14-2012, 07:30 AM
  4. Excel 2007 : vlookup and transpose query
    By breadpitt in forum Excel General
    Replies: 0
    Last Post: 06-21-2012, 06:14 AM
  5. Save data retreived from query without saving query
    By Anthony in forum Excel General
    Replies: 0
    Last Post: 01-25-2006, 03:20 PM

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