+ Reply to Thread
Results 1 to 5 of 5

Deleting Specific Data

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    KP
    MS-Off Ver
    Excel 2016
    Posts
    67

    Post Deleting Specific Data

    Hi,
    I have a formula for Column G that Matches column G with Columns H to X and highlights those cells that have same value or part of it is same like Column G.. But Rows wise....

    Formula is

    =SUM(COUNTIF(G1,"*"&TRIM(MID(SUBSTITUTE(TRIM($G1)," ",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(TRIM($G1))-LEN(SUBSTITUTE($G1," ",""))+1))*99-98,99))&"*"))

    See the results in the screen shot when i applies it

    http://dl.dropbox.com/u/12584890/New%20folder/m1.jpg

    Now I want to delete all the irrelevant data that doesn't match with column G.. (That is in normal font and color)
    I need the same results as shown in the following screen shot...

    http://dl.dropbox.com/u/12584890/New%20folder/m2.jpg

    Let me know Should I delete them manually or a formula can solve my problem???
    Thanks a lot for your time
    Cheers

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Deleting Specific Data

    there is no formula that will delete data, at best it will show "nothing", but the formula will still be there.

    having said that, you could add a helper column, that uses a formula to select those rows that you want to keep. you then convert the answers to values, sort everything based on those values, and then delete (manually) all those rows you dont want.

    however, without an actual workbook to look at, instead of just a picture, it would be harder to offer suggestions on what that formula should be...so maybe upload the workbook instead of a picture?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Deleting Specific Data

    A formula can't delete any data - it can just hide it or mark it for you to delete it manually.

    Pete

  4. #4
    Registered User
    Join Date
    04-05-2012
    Location
    KP
    MS-Off Ver
    Excel 2016
    Posts
    67

    Re: Deleting Specific Data

    Thanks FDibbins and Pete for your replies and suggestions..
    FDibbins that will be great. Actually it is very difficult to delete them one by one.. So if i can get the required data in 1 column. or select them and copy them to some other place.. or whatever which can save my time.. That will be great.. because the files are really big ones...
    Attach is the sheet and the above formula is applied to it..

    Thanks
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Deleting Specific Data

    after seeing your file, what i suggested probably wont work. what are you basing your "coloring" on?

    my suggestion will work on a column-by-column basis, but it removes the duplicates and then moves everything below up to fill in the gaps

    In the attached, i added a helper column at A, and added =IF(ISTEXT(VLOOKUP(B2,B3:$B$50,1,FALSE)),1,0)

    SAVE YOUR FILE beforee to do the next steps, in case you make a mistake, or it doesnt do what you need!!!!!!!

    the next step is to value those answers in column A, and then sort your entire table on A. delete all the rows with 1 in column A. you can then delete column A if you want

    let me know if this gives you what you need?

    edit: file attached
    Attached Files Attached Files

+ 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