+ Reply to Thread
Results 1 to 3 of 3

Help with transposing data

  1. #1
    Registered User
    Join Date
    06-21-2019
    Location
    Topeka
    MS-Off Ver
    2016/Office 365
    Posts
    17

    Help with transposing data

    I have a spreadsheet that I need help transposing. The document I have is laid out with the headers down column A and the acutal data in column B. The issue is the headers repeat for every set of data. I've attached a clean copy of the layout and removed the actual data due to the sensitive nature of the info. Any help would be greatly appreciated. The orange table is the desired layout.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Help with transposing data

    See next code
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Help with transposing data

    For a formula option...

    In E4 put this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In E5 put this formula and fill down a few hundred rows. This formula returns the row number each time it finds the text "NAME" in column A. (You can, and should, change 9999 to a row that is beyond your last used row in column A.)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In F4 put this formula, then fill right to M4 and down as many rows as you need (rows that show values in column E):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can then format the range of transposed data to hide the 0's where no data exists. (Conditional Formatting, for cells that equal zero, set the Number Format to Custom and use ;;;)

    Note: There are some instances of incomplete data sets (missing fields) in column A (e.g. rows 453-462, 735-742, 745-752, 777-783, 786-792, etc.) This could affect results, as these formulas find the NAME field/value, then get the next field values (TITLE, COUNTY) from the ensuing rows. So if there's a gap or missing field it could miss it. (The code provided by PCI also has similar limitations, including another one where two sets of data don't have any row gap between them. The code uses Areas, and when two data sets are together it sees that as one Area.)

+ 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] Need help with transposing data
    By harryk21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2015, 12:46 PM
  2. Transposing repeating vertical data to horizontal data but retaining unique values only
    By mgcarino14 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 12:57 AM
  3. Transposing All Data
    By suryasai in forum Excel General
    Replies: 2
    Last Post: 07-03-2014, 03:33 PM
  4. Transposing list of values with 6 zeroes in front to retain the zero after transposing
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2013, 03:34 AM
  5. transposing data
    By kate1234 in forum Excel General
    Replies: 6
    Last Post: 08-14-2012, 05:58 PM
  6. Replies: 5
    Last Post: 04-23-2010, 08:01 AM
  7. Replies: 5
    Last Post: 08-01-2006, 12:23 AM

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