+ Reply to Thread
Results 1 to 3 of 3

Creating single line record from a Pivot table or even the original data

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    West Mids, England
    MS-Off Ver
    2003
    Posts
    2

    Creating single line record from a Pivot table or even the original data

    I get various downloads of data from a legacy system which spits out multiple records which has a unique identifier, location reference and some text upto 180 characters long, every carriage return creates a new record, but the identifier allows me to create a pivot table to allow me to read the record in full, I then do a bit of bodging of the original data to create single unique records to import into a GIS system, but this doesn't allow me to read the record in full as my bodge strips out the text.

    I'd like to transpose the additional (upto) 180 characters of text per line for each pivot into an individual column of text; that could entail upto 252 rows of info transposing to 252 columns wide, but is often only 8 rows of text information, unfortunately the number of lines vary randomly and manual manipulation is painfully slow, if I want to retain the text.

    i.e.
    Unique ID, Postcode, Text1
    www-001, EC1a 1BB, 1 quick brown fox
    www-001, EC1a 1BB, 2 quick brown fox
    www-001, EC1a 1BB, 3 quick brown fox
    www-001, EC1a 1BB, 4 quick brown fox

    becomes:

    Unique ID, Postcode, Text1, Text 2, Text 3, Text 4,
    www-001, EC1a 1BB, 1 quick brown fox,, 2 quick brown fox, 3 quick brown fox, 4 quick brown fox

    Is it possible to create this in a relatively automated way, I've bodged a recent 50k line file into 5000 unique records, but I'd like to add value to the GIS system by allowing all the relevant text to be read if needs be. Tried to upload an example file, but it wasn't possible to do this for some reason. To add to this I'm trying to do this in Excel 2003 :-)

    I was thinking of an IF statement of some sort around the Unique ID and and the Text1 field, then a copy and paste special of the text, but my Excel and thinking skills aren't up to the job of what I want to do given the huge number of records I want to have available to view in the GIS system.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Creating single line record from a Pivot table or even the original data

    Here's a thought.
    First concatenate the text strings using the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Next add the ID and Postcode using the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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.

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    West Mids, England
    MS-Off Ver
    2003
    Posts
    2

    Re: Creating single line record from a Pivot table or even the original data

    Really getting towards a good solution and a big thank you, my brain struggles to get around this (voodoo magic ), but I do find it is possible to modify other peoples work to get where I need to, if there aren't too many steps for me to take.

    I've added this to some of my data and the concatenate stops at 1050 characters, I could live with this to be honest, given I can only have 256 characters per field in the GIS system any way, but max number of lines I've got is 252, which is a potential 45360 characters

    One of my bodges will now be more elegant using
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Like all these things, I've now got mission creep, I've to try to identify locations were more than 4 dates in 2 months occur, I'm sure it will involve nested IF statements, but I think this might require a bit more thinking about and another thread.

+ 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. How do I restore original Pivot Table data?
    By Andrew C in forum Excel General
    Replies: 8
    Last Post: 12-14-2016, 03:14 AM
  2. Add data not in original range to pivot table
    By mfeng in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-03-2013, 02:19 AM
  3. Replies: 1
    Last Post: 01-17-2012, 10:47 AM
  4. Replies: 0
    Last Post: 09-17-2010, 10:59 AM
  5. Applying filter to original data from pivot table
    By Oingofan in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-10-2009, 02:30 PM
  6. Creating new table from selective data in original table
    By rasmussk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2009, 09:46 AM
  7. Original Source of Pivot Table Data
    By akexcel in forum Excel General
    Replies: 3
    Last Post: 05-08-2007, 09:53 AM
  8. [SOLVED] Keeping original data format into a Pivot Table
    By carim.fam@wanadoo.fr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2005, 09:06 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