Closed Thread
Results 1 to 4 of 4

How do I split a string?

  1. #1
    Registered User
    Join Date
    11-26-2020
    Location
    Miami
    MS-Off Ver
    18
    Posts
    13

    How do I split a string?

    I need to split the address from this string. Some strings have 2 delimiters before getting to the address and some have one depending on the number of names. So I started from the right side. I guess there would be a way to start from the left and find the first number also.


    ALVES HERMINIA M | 316 CLEVELAND AVE | HARRISON, NJ 07029


    BARBOSA MANUEL J AND | MARIA C BARBOSA | 59 LANG STREET | NEWARK, NJ 07105


    I was able to get the city, state and zip by using this formula starting from the right side. I don't know how to get the address though. If I could go to the next “|” and subtract the city,st and zip? Or just get the data between the last and second to last “|”.


    =TRIM(RIGHT(SUBSTITUTE(TRIM([A!), "|", REPT(" ", 99)), 99))

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

    Re: How do I split a string?

    Reported as duplicate

  3. #3
    Registered User
    Join Date
    11-26-2020
    Location
    Miami
    MS-Off Ver
    18
    Posts
    13

    Re: How do I split a string?

    Sorry, I accidentally posted this twice. Please go to the other post with the same name.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,301

    Re: How do I split a string?

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...-a-string.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-25-2020, 01:12 AM
  2. [SOLVED] Split string and apply function on string parts
    By fandreacci in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2015, 12:34 PM
  3. [SOLVED] Split String at every "/" then put split string results into a multiline textbox.
    By Andrew Andromeda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2015, 01:49 AM
  4. How to split a string based on a sub string
    By dippa in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-24-2014, 08:04 PM
  5. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  6. Can excels Split() function split a string up at multiple spots?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2011, 02:36 PM
  7. Split string?
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-26-2011, 07:40 AM

Tags for this Thread

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