+ Reply to Thread
Results 1 to 5 of 5

comparing and deleteing data in different locations

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Doylestown Pa
    MS-Off Ver
    Excel 2003
    Posts
    3

    comparing and deleteing data in different locations

    I am attempting to determine how or even if I can do something. I have a sheet with 4 columns of data. Column A and Column B are related to each other and Columns C and D are related to each other. What I am attempting to do is compare the data in Column B with the data in Column D (all rows) and if a match is found Delete the Data in column A and B for that row only. Then move onto the Next Row until complete (30,000 cells which I am attempting to do manually). In other works steping down the rows looking for matches to the data in Column B.

    The end result would be the data that remains in Column A and B would only be data that did not match anything when column B is compared to ALL of Column D.

    Any guidance would be appreciated, since my Excel skills are near Zero.

    Thanks in Advance

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Homeless. I am not kidding.
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,134

    Re: comparing and deleteing data in different locations

    Can you attach a sample file?

  3. #3
    Registered User
    Join Date
    11-23-2011
    Location
    Doylestown Pa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: comparing and deleting data in different locations

    As requested a sample of what I am looking at:

    ............. Col A ...................... .... Col B ............ ....................... Col C...................... ............... Col D
    Row 1... V10999.................. COATTRCD..D1011.T00............ 704275.................... COATTRCD.D1010.T00
    Row 2 .... V32257................ COATTRCD..D1014.T00........... 707668.................... COATTRCD.D1011.T00

    This is edited to be readable easily, in the above example I would be comparing Row 1 Column with Row 1 Column D not a match. Then I would compare Row 1 column B with row 2 column D and it is a match, so I want to delete the information in Row 1 Column A and B. If no match is found the data will stay and move on to the next Row and do the same over again until complete. In this example Row1 Column B is a match for Row2 Column D so I want to delete Row1 Columns A and B.

    I had issues with spacing periods added just to keep things separate, not actually in the data (sorry).
    Last edited by swanscn; 11-23-2011 at 06:03 PM.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: comparing and deleteing data in different locations

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    11-23-2011
    Location
    Doylestown Pa
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: comparing and deleteing data in different locations

    Attaching a sample wookbook. this work book contains the before and what I am looking to get to in the after version, the top portion is the before and the lower section would be the after.
    Attached Files Attached Files
    Last edited by swanscn; 11-23-2011 at 11:03 PM.

+ 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