+ Reply to Thread
Results 1 to 7 of 7

Data re-arrangement

  1. #1
    Registered User
    Join Date
    10-16-2009
    Location
    USA
    MS-Off Ver
    2002-2007
    Posts
    4

    Question Data re-arrangement

    Greetings,

    I am having a heck of a rearranging some data, and I was hoping that someone might be able to point me in the correct direction. I have a series of individual 'records' similar to this:

    Name, John
    Location, Las Vegas

    Name, Jane
    Location, Denver

    Name, Joe
    Location, Boston


    I need to come up with a way to get this data into typical column-style format:
    Name, Location
    John, Las Vegas
    Jane, Denver
    Joe, Boston


    Has anyone had to do something similar before? Any advice would be tremendously appreciated!!


  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Data re-arrangement

    Are these values (e.g. Name, John) in one cell?

  3. #3
    Registered User
    Join Date
    10-16-2009
    Location
    USA
    MS-Off Ver
    2002-2007
    Posts
    4

    Re: Data re-arrangement

    No (apologies - I should have specified). The comma was meant to indicate a seperate column.

    Basically, column A contains a repeated list of "Name" and "Location" (followed by an empty cell). Column B contains their corresponding values.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Data re-arrangement

    OK, if your names/locations start in B1/B2, B4/B5 etc and your headings are in D1/E1 then add these formulae and copy down:

    D2: =OFFSET($B$1,3*(ROW()-2),0,1,1)

    E2: =OFFSET($B$1,3*(ROW()-2)+1,0,1,1)

    If your data are arranged differently, these will need some adjustment so I suggest you post a sample workbook if you need further help.

    EDIT: see attachment.
    Attached Files Attached Files
    Last edited by StephenR; 10-16-2009 at 03:48 PM.

  5. #5
    Registered User
    Join Date
    10-16-2009
    Location
    USA
    MS-Off Ver
    2002-2007
    Posts
    4

    Re: Data re-arrangement

    Stephen,

    First off - thank you for introducing me to the OFFSET function. It is very useful to know. It wasn't working for all of my values, but then after I read the syntax (above) a bit more, I figured out why: it is assuming that all of my "records" are equally spaced throughout the spreadsheet (3 lines apart).

    Unfortunately, this is not true.

    Basically, what I am looking for is a function that will essentially say:
    "If I find this value ("Name"), then copy the data located on cell to the right of it"

    Does such a command exist? I have been trying my best to search through this forum (and am still searching), but haven't found anything just yet...

  6. #6
    Registered User
    Join Date
    10-16-2009
    Location
    USA
    MS-Off Ver
    2002-2007
    Posts
    4

    Re: Data re-arrangement

    OK - I'm looking at this data more and more, and it is much more complicated that my overly simplified 'example' posted earlier. It also definitely exceeds my knowledge of Excel (and what will likely involve some VB).

    Basically, here is the "raw" data:
    http://www.ntia.doc.gov/broadbandgra...ns/results.htm

    This is obviously a database of some sort, but due to the output format, it is not very easy to work with at all. I am attempting (poorly, I might add) to filter this into individual columns ("Applicant", "Location", etc...).

    Any assistance would be greatly appreciated. The spreadsheet that I am currently working with is attached...
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Data re-arrangement

    That's quite different, and why it's better to post your data as is. My initial approach doesn't work as you've found out.

    Try this. For some reason the grant/loan didn't appear to pick up the values - see if it works for you. Appears to be an odd formatting issue.
    Please Login or Register  to view this content.

+ 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