+ Reply to Thread
Results 1 to 8 of 8

Formula for Deleting Text based on Criteria

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Formula for Deleting Text based on Criteria

    Does anyone know if there's a way to have text on one sheet automatically removed/deleted/hidden based on data/criteria entered on another sheet in the same workbook?

    For example, in my attached worksheet I have three sheets (Draft Board, OVR and C). All three sheets have a list of names, I would like the 'OVR' and 'C' sheets to have names and all the data in that row with the name removed/deleted when a value is entered with that same name on the Draft Board sheet.

    Let's say I enter a number value in cell I4 of the Draft Board Sheet for the name Buster Posey, I would then want the name Buster Posey and all his information in that corresponding row removed/hidden automatically from the 'OVR' and 'C' sheets. In addition, once the value is then removed from cell I4, the player would then reappear. Is this possible?

    My worksheet is attached, any help would be greatly appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Formula for Deleting Text based on Criteria

    Hello,

    hmmm. I believe I answered the same question yesterday...
    http://www.excelforum.com/excel-form...ml#post3974149

    Did you try to modify the code I provided?
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Deleting Text based on Criteria

    Quote Originally Posted by GC Excel View Post
    Hello,

    hmmm. I believe I answered the same question yesterday...
    http://www.excelforum.com/excel-form...ml#post3974149

    Did you try to modify the code I provided?
    Yes I replied with a question but never heard back figured you were busy, sorry sort of on a deadline with this project.

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Formula for Deleting Text based on Criteria

    Sorry, I missed your question.
    Here's the update code based on your new worksheets.

    Please Login or Register  to view this content.
    See in your workbook, the 2 cells in yellow. Make sure there is text entered in these 2 cells otherwise the range will not be selected properly.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Deleting Text based on Criteria

    Perfect thanks so much! You do a great job
    Last edited by jeffreybrown; 01-31-2015 at 08:45 PM.

  6. #6
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Formula for Deleting Text based on Criteria

    Hi again,
    From the file you sent me, try this new code :

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Deleting Text based on Criteria

    Quote Originally Posted by GC Excel View Post
    Hi again,
    From the file you sent me, try this new code :

    Please Login or Register  to view this content.
    Yes it works now, but it seems to take about 30 seconds to take effect, I need it to be much faster than that, is that because of the size of my file? How fast did it work for you?

  8. #8
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Formula for Deleting Text based on Criteria

    It was also slow on my computer.
    Probably because of the file size.

+ 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. Formula for Deleting Text based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-31-2015, 04:00 PM
  2. Formula for Deleting Text based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-31-2015, 02:08 AM
  3. [SOLVED] Deleting rows based on two criteria
    By safesearcher in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-31-2013, 12:54 PM
  4. Deleting rows based on criteria
    By mcmuney in forum Excel General
    Replies: 6
    Last Post: 06-13-2011, 03:31 PM
  5. Most efficient way of deleting row based on criteria
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2011, 09:31 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