+ Reply to Thread
Results 1 to 15 of 15

remove cell content based on another cells text

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    remove cell content based on another cells text

    hi.

    Im just wondering if a cell (L9) content can be removed if anything or a date that is inserted into cell (O9)? This will be the same for all the other rows in these two columns.

    Any help would be appreciated

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: remove cell content based on another cells text

    Check attached....
    The macro runs automatically when cell value changes in column O.
    The macro looks if there is any value in column O, if column O has any value then then the corresponding value from column L will be removed....
    Hope this helps!!
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Hi Thanks for replying.

    Nothing works on the sheet you have attached? I have also looked at the code and cannot see anything....could you copy and past the macro on here at all?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: remove cell content based on another cells text

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    Hi John,

    I tried using the basis of your code you gave me the other week where another cells content removes another but for some reason this code is not working for these cells. I don't understand why it does not work :S I have been given another macro where you have to run it to remove but there would be room for error if employees do not run it as i was hoping it could be done automatically like the code from last week

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: remove cell content based on another cells text

    Can you post a sample file in which it does not work? Then I can test and see what's going on.

  7. #7
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Quote Originally Posted by JOHN H. DAVIS View Post
    Can you post a sample file in which it does not work? Then I can test and see what's going on.
    Please see attached .
    Attached Files Attached Files

  8. #8
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: remove cell content based on another cells text

    I am sorry, by mistake I attached the xlsx file...
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: remove cell content based on another cells text

    Quote Originally Posted by toneNFFC View Post
    Please see attached .
    Seems to work for me? What's not working for you. Note you changed the Columns.

  10. #10
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Quote Originally Posted by JOHN H. DAVIS View Post
    Seems to work for me? What's not working for you. Note you changed the Columns.
    Hi John,

    The previous one yes I asked for anything in column R to wipe out The contents in Column F (which works fine) I need the same method for Anything in Column O to knock out the contents of Column L swell :S

  11. #11
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: remove cell content based on another cells text

    Did you check mine??

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: remove cell content based on another cells text

    Try:

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Quote Originally Posted by sourabhg98 View Post
    Did you check mine??
    Hi Yes i did...it works fine on your sheet but i cannot seem to get it to work on my main template sheet :S......not sure if something is conflicting it......apologies for not seeing your post earlier

  14. #14
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

    Quote Originally Posted by JOHN H. DAVIS View Post
    Try:

    Please Login or Register  to view this content.
    Thats the one!! works a treat. Thanks again John and sourabhg98 for all your help

  15. #15
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: remove cell content based on another cells text

    You're welcome. Glad to help out 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. [SOLVED] remove cell content based on another cells text
    By toneNFFC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2015, 08:02 AM
  2. Automatically copy cells content based on the content of another cell.
    By chrisbarlow1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2014, 11:13 AM
  3. [SOLVED] Search text in cells, find matching text based on list, remove all but one entry
    By adam_mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 12:50 PM
  4. [SOLVED] Display text based on content of 3 cells
    By smugglersblues in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-20-2012, 12:25 PM
  5. Replies: 5
    Last Post: 01-28-2011, 07:02 PM
  6. How to remove certain cells based on text
    By jkupps2415 in forum Excel General
    Replies: 2
    Last Post: 06-18-2010, 03:45 PM
  7. Changing the text on button based on cell content
    By a94andwi in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 12:58 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