+ Reply to Thread
Results 1 to 11 of 11

Left/Right with multiple Find

  1. #1
    Registered User
    Join Date
    06-03-2023
    Location
    Montreal, Quebec
    MS-Off Ver
    Office 365
    Posts
    10

    Left/Right with multiple Find

    Hello,

    I have a column with control number (Text strings). These control numbers are not always identical but they all share the "-". I will like to apply a formula to will break them down the text string. I have the formula LEFT(A2,FIND("-",A2)-1) when I am looking to only pull the first breake down but I am wondering if there is a way to have a formula that can considered many "-".

    Exemple below. I also included an excel sheet


    Control #'S Breake down #1 Breake down #2 Breake down #3 Breake down #4 Breake down #5
    111AA-222C-333BB 111AA 222C 333BB


    I hope this tread is clear enough to be understood

    Thank you
    Attached Files Attached Files
    Last edited by LL2B; 07-06-2023 at 08:21 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Left/Right with multiple Find

    Try:
    =TEXTSPLIT(A2,"-")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Left/Right with multiple Find

    or(delete ALL expected results first):

    =IFERROR(DROP(REDUCE("",A2:A8,LAMBDA(x,y,VSTACK(x,TEXTSPLIT(y,"-")))),1),"")
    Attached Files Attached Files

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

    Re: Left/Right with multiple Find

    In B2 copied across and down:

    =IFNA(LET(t,TEXTBEFORE("-"&$A2,"-",COLUMNS($B1:C1)),TEXTAFTER(t,"-",COLUMNS($B1:B1))),"")
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    06-03-2023
    Location
    Montreal, Quebec
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Left/Right with multiple Find

    Thank you. Both of the formula works really good. Thank you again

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: Left/Right with multiple Find

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  7. #7
    Registered User
    Join Date
    06-03-2023
    Location
    Montreal, Quebec
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Left/Right with multiple Find

    Thank you. With this formula, I am always missing one break down. I attached a copy with this formula

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Left/Right with multiple Find

    No problem with my formulae...

    Ali's works fine with:

    =IFNA(LET(t,TEXTBEFORE("-"&$A2&"-","-",COLUMNS($B1:C1)),TEXTAFTER(t,"-",COLUMNS($B1:B1))),"")

    I spotted it immediately, as I made the same error yesterday!!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: Left/Right with multiple Find

    I forgot to add the extra &"-" - Glenn has added it for you above.

  10. #10
    Registered User
    Join Date
    06-03-2023
    Location
    Montreal, Quebec
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Left/Right with multiple Find

    Done. I have added the *

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: Left/Right with multiple Find

    Thanks, but please mark the thread as solved as explained earlier. Thanks.

+ 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. Find Multiple Values searching right and left columns
    By danibitter75 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-23-2023, 10:15 AM
  2. [SOLVED] Read "Find" from Right to Left instead of Left to Right
    By thenewkidd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-07-2021, 04:20 PM
  3. [SOLVED] snake single column into multiple columns right to left and left to right
    By Gesssssssss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2021, 10:10 AM
  4. LEFT, RIGHT and FIND
    By msixdatateam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 11:59 AM
  5. [SOLVED] Left/right find
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2014, 04:29 AM
  6. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM

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