+ Reply to Thread
Results 1 to 3 of 3

Split address into three rows with each a fixed length

  1. #1
    Registered User
    Join Date
    11-10-2020
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    1

    Post Split address into three rows with each a fixed length

    Hello Guys,

    I want to split the address in a cell into three with length no more than 35 characters:

    From:
    "The Metropolitan Museum of Art, 1000 5th Ave, New York, NY 10028, United States"

    To:
    Row 1 - "The Metropolitan Museum of Art,"
    Row 2 - "1000 5th Ave, New York, NY 10028, "
    Row 3 - "United States"

    If I split simply by number of character , the address will be wrong and incomplete:

    Row 1 - "The Metropolitan Museum of Art, 100"
    Row 2 - "0 5th Ave, New York, NY 10028, Unit"
    Row 3 - "ed States""

    I would be appreciate if you can help!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Split address into three rows with each a fixed length

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Split address into three rows with each a fixed length

    With Power Query

    Please Login or Register  to view this content.
    Excel 2016 (Windows) 32 bit
    A
    1
    Column1
    2
    The Metropolitan Museum of Art
    3
    1000 5th Ave, New York, NY 10028
    4
    United States
    Sheet: Sheet2


    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Last edited by alansidman; 11-10-2020 at 05:05 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Insert rows to maintain fixed page length
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2016, 03:38 PM
  2. Replies: 2
    Last Post: 11-07-2014, 06:10 PM
  3. 3 Rows fixed length export- Excel to txt file
    By Sandler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2014, 05:05 PM
  4. Plz help!! Multiple rows fixed length export from excel to text
    By sesgiri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2014, 02:32 AM
  5. [SOLVED] xml fixed field length
    By ArnolddG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 12:24 PM
  6. Fixed string length
    By Madball in forum Excel General
    Replies: 9
    Last Post: 12-01-2009, 07:49 AM
  7. How do I export an Excel spreadsheet with fixed length rows?
    By Paul from St.Paul in forum Excel General
    Replies: 5
    Last Post: 07-14-2005, 12:05 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