+ Reply to Thread
Results 1 to 5 of 5

how to extract text between various hyphens or underscores

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    how to extract text between various hyphens or underscores

    Hi,

    How do i extract each word out individually from cell H2? if cell H2 is "Amenities_BackRest_DisabledToilet.rfa" and H3 is "Amenities_HandDryer.rfa" etc etc

    As an example I want":
    cell I2 to show "Amenities"
    column J2 to show "Backrest"
    column K2 to show "DisabledToilet" without the .rfa

    Regards,

    Michael

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: how to extract text between various hyphens or underscores

    I2: =SUBSTITUTE(TRIM(MID(SUBSTITUTE($H2,"_",REPT(" ",99)),COLUMNS($I:I)*99-98,99)),".rfa",)

    copy across and down

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: how to extract text between various hyphens or underscores

    Thanks Teethless Mama. This works a treat!

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: how to extract text between various hyphens or underscores

    You're Welcome!

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: how to extract text between various hyphens or underscores

    any chance you can explain the formula? i would love to understand it

+ 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