+ Reply to Thread
Results 1 to 7 of 7

Find and delete data

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Find and delete data

    I have following data:

    column A contains alphabets i.e a|,b|,c| till k|
    Coumn B contains alphabets combinations i.e a|b|c|d|z|, c|d|q|a|, r|a|t|

    I want to delet those alphabets from combinations which are not present in column A


    for example in combination a|b|c|d|z| should be deleted in new combination should be look like a|b|c|d|

    Sample data file is attached.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,873

    Re: Find and delete data

    To achieve such result with formulas could be not_so_easy. Especially in a situation, when your a, b, c are in real life rather words/sentences than just letters.
    So I'd suggest short macro:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Find and delete data

    I don't know how to use this code. could you please send me the file containing this code ? please !

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,873

    Re: Find and delete data

    I used here two internal worksheet functions: iserror and match in application context (rather than worksheetfunction or application.worksheetfunction) to skip issues with
    Please Login or Register  to view this content.
    ... and checking errors

    PS. file is attached to above post

  5. #5
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Find and delete data

    I am not able to download this file !

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,873

    Re: Find and delete data

    Please try again.
    Just in case I'm also attaching it again here
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Find and delete data

    Hey Kaper, Its working ! thanks a lot :D

+ 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] Find and delete data
    By sandubandu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2016, 01:56 AM
  2. How to find first row that has data then delete above?
    By travis.cook21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2015, 04:10 PM
  3. [SOLVED] If Instr - find last row of data above and delete everything in between
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2013, 03:54 PM
  4. Find data, delete row, copy in new data - multiple sheets
    By gmn734 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2013, 08:49 AM
  5. Find last row of certain data and delete all below
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2012, 08:40 PM
  6. Find matching data in same row if none delete
    By Cicada in forum Excel General
    Replies: 5
    Last Post: 08-18-2011, 07:15 PM
  7. Find, replace, add, delete data from UI?
    By saltaholicwm in forum Excel General
    Replies: 5
    Last Post: 10-11-2008, 03:47 AM

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