+ Reply to Thread
Results 1 to 5 of 5

Removing values from column A that are found in column C.

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Craiova, Romania
    MS-Off Ver
    Excel 2010
    Posts
    3

    Removing values from column A that are found in column C.

    Hello,

    I have the following problem, i need to remove values from column A that are present in column C without modifying the order in column B
    To be more explicit below is an example:

    Column A---------Column B-------Column C

    5230400----------81,50----------1660000
    3275500----------78,00----------6245700
    2856300----------47,50----------5230400
    1879800----------62,50----------2497900
    2124300----------99,00----------1879800
    2497900----------65,00
    4826900----------77,50
    2124200----------34,00
    6245700----------61,50
    3324400----------86,00
    1660000----------53,00

    Column A represents 600 materials.
    Column B represents 600 prices. (different for each material)
    Column C represents 107 materials that are present in column A and have to be removed along with their prices in column B.

    Now i want to remove the materials that are in column A and C along with their prices, so i won't damage the order in the file.
    Meaning if i delete a row in A and shift the other materials up or down, and in the same time column B remains unchanged, the remaining materials will have different prices...and that's not good.

    If anyone could help it would be awesome! this is a common problem for me and i lose hours manually removing each material.
    If anyone needs anymore details please ask.

    PS: I'm using Microsoft Excel 2010.

    Thank You a lot for your help!
    Last edited by Wylen; 06-05-2013 at 05:34 AM. Reason: ----------

  2. #2
    Registered User
    Join Date
    03-28-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Removing values from column A that are found in column C.

    Can you attach the reference file

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Craiova, Romania
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Removing values from column A that are found in column C.

    Here is an example of an excel.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Removing values from column A that are found in column C.

    Do right click on sheet tab and select view code and paste the below code. Return to excel and do double click on A1 cell which will run the macro.

    Please Login or Register  to view this content.
    The deleted Material Codes are highlighted in red color for your easy understanding


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    Craiova, Romania
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Removing values from column A that are found in column C.

    It works like a charm! thank you a lot, this has been a problem for a very long period of time.

    Thank you for your time and help!!!

+ 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