+ Reply to Thread
Results 1 to 11 of 11

Remove all text Xcept some

  1. #1
    Registered User
    Join Date
    02-06-2023
    Location
    Desert
    MS-Off Ver
    2021
    Posts
    16

    Remove all text Xcept some

    On Xcel, I have a cell with text
    123 <abc> 4 5 6 <def> 78 9 <xYz> 10 1112 <zzz>
    I want another cell to Xtract only the data between the <> from that cell to display.
    How do I do that? ThanX everyone.
    Last edited by DesertDweller9; 04-13-2024 at 04:10 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Remove all text Xcept some

    So, the rules of engagement have changed. Not two blocks but three. Will there be any more, or less?

    Please upload a sample file with all variations of text. Before and after (expected results).


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Remove all text Xcept some

    For text in cell A2, try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Remove all text Xcept some

    Or you can use TEXTJOIN which makes it easier to add a delimiter, should you need to

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Remove all text Xcept some

    Just another option:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Remove all text Xcept some

    2021 doesn’t have TEXTBEFORE or TEXTAFTER.

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,416

    Re: Remove all text Xcept some

    I'm not sure what delimiter you wanted between the retrieved values, so I assumed a space (easily changed in first argument or TEXTJOIN). This formula assumes the text in the referenced cell (assumed to be A2) contains less than 300 characters and the there are no more than 6 possible values with angle brackets within the cell...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 04-14-2024 at 02:48 AM.

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Remove all text Xcept some

    @TMS - Huh, I did not now that. Thanks for letting me know. I thought depending on when you bought V2021 that it had what 365 had.

  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,987
    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.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Remove all text Xcept some

    Well, to be fair, I hadn't realised the new functions in the 2021 list also include the new functions in the 2019 list (until I checked with Ali). But what you get when you buy 2019 or 2021 is static. The only way to get all the functional updates as and when they happen is to have a 365 subscription. Maybe when 2024 is released it will have everything that the current 365 version has but I wouldn't hold my breath.

  11. #11
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Remove all text Xcept some

    Another way,
    Please Login or Register  to view this content.

+ 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. [SOLVED] Formula to Remove, or not remove, certain text from a cell.
    By Jake_San in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2022, 12:54 PM
  2. [SOLVED] Remove Blanc Space, parse text, convert text to measurement
    By plans in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2015, 07:50 PM
  3. Replies: 3
    Last Post: 06-15-2014, 11:31 AM
  4. Remove quotes in text file after converting Excel to Text in VBA Access 2002
    By ucalcen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2014, 10:35 AM
  5. Remove all text after 1st comma and Remove the -,NE and spacing
    By Tan Bee Hock in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2008, 06:28 AM
  6. Replies: 1
    Last Post: 04-18-2005, 05:06 PM
  7. Replies: 1
    Last Post: 04-17-2005, 08:10 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