+ Reply to Thread
Results 1 to 5 of 5

transposing data from a worksheet

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    2013
    Posts
    2

    transposing data from a worksheet

    Hi folks
    I have a worksheet with names, titles, address', email and require these to be in rows for import into a database.
    the format is like so:
    LASTNAME, FIRST NAME - Title, Company
    Street Address, CITY, STATE, ZIP
    Phone (000)-000-0000
    Fax (000)-000-0000
    Email johndoe@acompany.com
    LASTNAME, FIRST NAME - Title, Company
    Street Address, CITY, STATE, ZIP
    Phone (000)-000-0000
    Fax (000)-000-0000
    Email johndoe@acompany2.com
    There is no spacing and I did try the macro from an earlier thread, but alas no spaces.
    Any help would be apprecitated.
    THanks

    Mike

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: transposing data from a worksheet

    It is impossible to answer your question since you did not supply an example of how your data is initially, only your desired output. Submit an example workbook which clearly demonstrates before and after examples.
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: transposing data from a worksheet

    I gather the format you provided (the five rows) is the desired solution.

    If so, it would help if you added a small sample of what your worksheet looks like now, that you'd like to see formatted as above.

    Another question I have on the above format is do you want the second line, (Street Address, City, State, and ZIP) all in a single cell on that second row, or do you want Street Address in one column, City in the next column, State in the next column, etc.

    Ideally, attaching a small workbook showing the first sheet with the data as you have it now, and a second sheet showing your intended solution, would be ideal.

  4. #4
    Registered User
    Join Date
    08-24-2015
    Location
    Halifax, Nova Scotia
    MS-Off Ver
    2013
    Posts
    2

    Re: transposing data from a worksheet

    Thanks here is the spreadsheet example
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: transposing data from a worksheet

    Okay, so it appears my guess was wrong. Sheet1, and the format you provided in your original post, must be the original data, since it's not consistent. Sheet2, the data broken up into specific columns, is the intended solution.

    Sheet1 isn't consistent because I see that sometimes there are seven rows to a record (Zelalem Abebe) and sometimes there's just five rows (Elaine Abode, Teri Abou) and sometimes there's six rows (Jason Accardi).

    The solution is certainly do-able... but it will take someone some time. The program (macro) has to be smart enough to parse all of this inconsistent data.

    If the phone number will always follow a (P): and the fax number will always follow a (F): and the e-mail address will always follow a (E): then that will help.
    The states all seem to be the two-letter state abbreviation, followed by a numeric five digit and sometimes nine digit zip.
    It appears the first name always follows the first comma of a new record, on row 1, and everything before that is the last name.

    All of this will help someone to write the macro, of course. Hopefully all of the other data is consistent.

+ 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. 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
  2. [SOLVED] Grabbing data in a worksheet and transposing in another... or something like that!
    By Deanerama in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2014, 10:22 PM
  3. 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
  4. Transposing data from one worksheet to another
    By meowzers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2010, 01:28 PM
  5. Replies: 5
    Last Post: 04-23-2010, 08:01 AM
  6. Replies: 0
    Last Post: 08-16-2007, 05:51 AM
  7. Replies: 5
    Last Post: 08-01-2006, 12:23 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