+ Reply to Thread
Results 1 to 7 of 7

Move text into columns from rows

  1. #1
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Move text into columns from rows

    Hello All,

    I have a set of data that has a store number in cell A1, the store name in B1 and then the store address in C1, C2, and C3. This pattern repeats for all ~300 stores. I am trying to get all of the store data on one row per store.
    I have a set of data that looks like this:

    .......A........|........B..............|.....C..........................D....................E.................F
    1 STORE#..|..STORENAME...|..ADDRESS
    2 1024.......|..ONTARIO1.....|..2138 Ellwyn Drive
    3 ..............|....................|..Markham ON
    4 ..............|....................|..Canada, H4A 3L2
    5 1025.......|..ONTARIO2.....|..95 Dunberry Street
    6 ..............|....................|..Windsor ON
    7 ..............|....................|..Canada Q1A 4T6[/CODE]
    etc.
    There are over 300 stores.
    What I am trying to do is get the second and third lines from the address onto the same row as the store number in columns D, E, and F. Is there a way to do this without doing it by hand? I have very limited Excel programming skill but am very willing.
    Thanks!
    Last edited by clacka; 08-22-2009 at 08:36 PM. Reason: Tried to set up a table and it did not work as I thought it would

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Move text into columns from rows

    Post a workbook.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Move text into columns from rows

    Hello clacka,

    Will the address always be 2 lines following the store number?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Move text into columns from rows

    Yes it will.

  5. #5
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Move text into columns from rows

    And here is a clip of the data.
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Move text into columns from rows

    Hello clacka,

    This macro has already been added to the attached workbook. This will take the 2 address rows and put them into cell "E" and "F" of the row with the store number and name. The blank rows are then deleted.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-14-2005
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Move text into columns from rows

    Wow! Thank you so much! I really appreciate it immensely. Wish there was something I could do for you, but until then I will pay it forward in other ways! Positive karma on you and yours.

+ 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