+ Reply to Thread
Results 1 to 4 of 4

Deleting cell content based on a criteria

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    61

    Deleting cell content based on a criteria

    Hi

    just thought of a small problem. Is it possible to delete part of the cell cont based on a criteria

    Ex. "HANS (SPIS),Hans,Hans" would it be possible to delete the brackets and the content within the brackets using formulas?


    Thx in advance for any input
    Last edited by 2001jesper; 08-05-2013 at 12:24 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Deleting cell content based on a criteria

    How about...

    =SUBSTITUTE(A1,MID(A1,SEARCH("(",A1),SEARCH(")",A1)-SEARCH("(",A1)+1),"")
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Deleting cell content based on a criteria

    Worked Perfect

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Deleting cell content based on a criteria

    You're welcome…glad you have a workable solution and thanks for the feedback...

+ 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. Replies: 3
    Last Post: 06-25-2013, 01:21 PM
  2. [SOLVED] Deleting Multiple Rows based on Cell Content
    By pdreyest in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-23-2012, 12:58 PM
  3. Deleting content in cells based on criteria
    By morris5984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2008, 11:14 AM
  4. Deleting Rows based on cell content
    By nuno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2007, 06:47 AM
  5. [SOLVED] Deleting cell contents based on partial content?
    By Jordon in forum Excel General
    Replies: 4
    Last Post: 03-18-2005, 08:06 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