+ Reply to Thread
Results 1 to 5 of 5

Flattening Data

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Flattening Data

    I have data in the form of a list of residents, each record or row is a description of the resident with a unique ID for the person and one for the address. Each address may have one or more resident e.g.

    Res1 – Joe Jones – Add1 - 10 Glebe Street
    Res2 – Anne Bloggs – Add2 – 12 Smith Street
    Res3 – Bill Bloggs – Add2 – 12 Smith Street
    Res4 – Frank Smith – Add3 – 5 Poplar Lane
    Res5 – Jane Smith – Add 3 – 5 Poplar Lane
    Res6 – Bob Smith – Add3 – 5 Poplar Lane
    Res7 – Dave Frank – Add4 – 12 Bridge Street
    Res8 – Paula Frank – Add4 – 12 Bridge Street

    I need to create a list where each address has only one record / row and each resident is described in the record e.g.

    Res1 – Joe Jones – Add1 - 10 Glebe Street
    Res2 – Anne Bloggs – Add2 – 12 Smith Street - Res3 – Bill Bloggs
    Res4 – Frank Smith – Add3 – 5 Poplar Lane - Res5 – Jane Smith - Res6 – Bob Smith
    Res7 – Dave Frank – Add4 – 12 Bridge Street - Res8 – Paula Frank

    I’m stuck on how to do this! Any help would be really welcome.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Flattening Data

    The answer to this will depend heavily on how the data is organized...

    Can you post a copy of the spreadsheet plz?

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Flattening Data

    Hi

    The data looks like that in cells A1 - L10 and I want to convert it into the format shown in A16 - Y21, not remotely efficient but it is what I've been asked to do!

    Cheers

    David
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Flattening Data

    in cell B17, use this formula, and copy down and across...

    =VLOOKUP($A17,$B$2:$L$10,MATCH(B$16,$B$1:$L$1,0),FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Flattening Data

    Hi

    Ahh....I think I can see what you are getting at there - I'll work on this tomorrow as time is getting on here in Edinburgh. Many thanks.

    David

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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