+ Reply to Thread
Results 1 to 9 of 9

Excel 2016 transposing data in rows and columns

  1. #1
    Registered User
    Join Date
    03-28-2018
    Location
    Bissau, Guinea-Bissau
    MS-Off Ver
    365
    Posts
    4

    Excel 2016 transposing data in rows and columns

    I have a data sheet of some 10 columns and 200 rows with data values in the inter-connecting cells.

    I need to transpose the rows into columnar data in order to create a journal entry to post into another application. The best way to describe it is to look at the file attached. Table A is an example of how my data is currently laid out and Table B is how I would like to data to be transposed. I've been going round in circles looking for a simple way to achieve this, trying to avoid VBA macros if possible.

    Anyone come across this before or know of a solution to the problem?
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Excel 2016 transposing data in rows and columns

    Hi, welcome to the forum. Copy the "ABCDE" in column A down, then use these formulas:
    In B9, copied down:
    Please Login or Register  to view this content.
    In C9:
    Please Login or Register  to view this content.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Excel 2016 transposing data in rows and columns

    You can use the formulae below in the cells stated:

    A9: =INDEX($B$2:$F$2,MOD(ROWS($1:1)-1,5)+1)

    B9: =INDEX($B$3:$F$6,INT((ROWS($1:1)-1)/5)+1,MOD(ROWS($1:1)-1,5)+1)

    C9: =INDEX($G$3:$G$6,INT((ROWS($1:1)-1)/5)+1)

    Then copy down as required.

    You will need to adjust the ranges to suit your real data and change the 5 to 10.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel 2016 transposing data in rows and columns

    Another way and similar to Pete's.

    in A9 (and same as Pete's)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In B9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In C9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    03-28-2018
    Location
    Bissau, Guinea-Bissau
    MS-Off Ver
    365
    Posts
    4

    Re: Excel 2016 transposing data in rows and columns

    Thanks all for the feedback. I've tried all the suggestion but keep getting an error message.

    FlameRetired, yours was the last that I tried but each time I enter the formal I get an Excel error message. I'm not sure if it's because of the version of Excel. Originally I was on Excel 2016 but on checking it says Excel version 16.11 for Office 365.

    Anyway, I've attached screenshots of the error messages for the equations

    Thanks for the support.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Excel 2016 transposing data in rows and columns

    Your regional settings might be set to use a comma as a decimal point, in which case you will need to use a semicolon ( ; ) instead of any commas in the above formulae.

    Also, in the second of your screenshots, you have two consecutive commas in the formula you are trying to enter.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    03-28-2018
    Location
    Bissau, Guinea-Bissau
    MS-Off Ver
    365
    Posts
    4

    Re: Excel 2016 transposing data in rows and columns

    Thanks Pete_UK! Worked perfectly...I would have been here a long time trying to figure out that the problem was the decimal settings. Thanks very much.

  8. #8
    Registered User
    Join Date
    03-28-2018
    Location
    Bissau, Guinea-Bissau
    MS-Off Ver
    365
    Posts
    4

    Re: Excel 2016 transposing data in rows and columns

    How difficult would it be to modify the equations to not transpose a line if the intersecting value was zero?

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Excel 2016 transposing data in rows and columns

    As the question in post #8 has gone unanswered for almost a week, I'll propose a low tech solution.
    Use the table produced by the formulas above as a first draft, then populate a second table as the final product using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: Remember Pete's statement about regional settings.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 07-20-2017, 01:52 PM
  2. Replies: 2
    Last Post: 07-20-2017, 11:50 AM
  3. [SOLVED] Transposing Data from rows to columns
    By Joe47 in forum Excel General
    Replies: 7
    Last Post: 07-09-2013, 05:42 AM
  4. [SOLVED] Transposing Data from Columns to Rows
    By David Hedley in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-30-2013, 05:17 AM
  5. [SOLVED] Need VBA Sub for Transposing Data in Columns to Rows
    By Phoenix1975 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-17-2013, 04:41 PM
  6. Transposing Rows to Columns and their data
    By scojo in forum Excel General
    Replies: 8
    Last Post: 11-14-2007, 05:22 PM
  7. Transposing data from columns to rows
    By Annalise Vogel in forum Excel General
    Replies: 5
    Last Post: 11-25-2005, 02:30 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