Results 1 to 2 of 2
  1. #1
    mumaan is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    1

    Transpose rows x columns

    Hello friends, Iīm new here and I use Access for about 3 years already.
    I use, not a very good programmer though. But I have started some self-learning on it and itīs been helping me a lot in work.
    I have a doubt: how do I transpose Rows into Columns in Access?

    I have for example the table(1).

    I just want to transpose the values so it gets like table(2)

    I have found several similar doubts, but usually they are more complex as to sum up rows or columns.


    In my case is a simple transpose, because when I import the data from an excel spreadsheet I have to first enter on the sheet, transpose the data, and them work with it in Access. I want to create a button only to transpose that for me in the Access database . Is it possible?

    Also, while transposing, would be possible to remove a future column, letīs say, Real Sector and Inflation? I already have a query doing that but if I could do all in one would be great.

    Thank you all for the help!


    (1)
    Annual data 2014 2015 2016
    Real sector
    Population 203 203 203
    GDP 5.521 5.521 5.328
    Economic Growth 7% 7% 8%
    Inflation 3% 4,50% 5%
    Current account balance -4% -3,78% -2,35%



    (2)
    Annual data Real sector Population GDP Economic Growth Inflation Current account balance
    2014 203 5.521 7% 3% -4%
    2015 203 5.521 7% 4,50% -3,78%
    2016 203 5.328 8% 5% -2,35%

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    1. build a query that pulls the data you want.
    2. now use the query wizard and select the query in 1, and make a CROSSTAB query. it will guide you for rows vs columns.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 02-25-2014, 01:09 AM
  2. Replies: 12
    Last Post: 07-31-2013, 01:29 PM
  3. Query to transpose Data in Columns to Rows
    By ace1259 in forum Access
    Replies: 2
    Last Post: 04-10-2012, 01:49 PM
  4. Rows to columns
    By Jim.H. in forum Access
    Replies: 1
    Last Post: 01-28-2012, 05:29 PM
  5. Rows into Columns
    By chrisdavis in forum Programming
    Replies: 16
    Last Post: 12-22-2011, 01:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums