+ Reply to Thread
Results 1 to 8 of 8

IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    38

    IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    I need following the following accomplished. I will also need the ENTIRE ROW deleted if Column B had content deleted by this action.

    Thanks!IF-FOUND-DELETE.xlsx

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    So first, i have to match the contents of column A with columns B & C and clear the contents.

    Then if column B has empty cells, delete the entire row? What if B has data but C has empty cells?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    Actually can you just ignore the deleting the entire row option just for now...and just delete each cell in B, C, D as it shows up in column A
    Last edited by mecutemecute; 06-10-2013 at 10:37 AM.

  4. #4
    Registered User
    Join Date
    05-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    Please help i need this in a hurry!

  5. #5
    Registered User
    Join Date
    05-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    is this too difficult? i will even take a multi step solutions for this.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    Please Login or Register  to view this content.
    Maybe you can start reading the forumrules.

    It's a forum volunteers give free help (on times it fits to the volunteers).
    Last edited by oeldere; 06-10-2013 at 04:16 PM.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    05-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    Quote Originally Posted by oeldere View Post
    Please Login or Register  to view this content.
    Maybe you can start reading the forumrules.

    It's a forum volunteers give free help (on times it fits to the volunteers).
    Sorry, i was just in big hurry.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

+ 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