+ Reply to Thread
Results 1 to 5 of 5

Delete cells based on criteria

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Delete cells based on criteria

    On my spreadsheet there are 78 examples starting in row 66. For each example there is one main ticker which is located in the first row of each example in column F along with a date in column H. (example 1= ALK: 2/4/2010, example 2= CAL: 2/4/2010). Each main ticker has a maximum of 20 other tickers below it.

    I need a macro to run through every example and identify those with the same date in column H. For examples with the same date, I need to identify the main tickers of each example and delete those tickers from the list of a maximum of 20 other tickers in each example in column F.

    As an exmaple of how the macro should work, in column E, I highlighted in red the tickers that should be deleted from the four examples that occur on 2/4/2010.


    A macro would save me a ton of time doing this task. I have multiple spreadsheets that this needs to be done on. Any help would be amazing! Thanks!
    Attached Files Attached Files
    Last edited by rhudgins; 05-27-2010 at 02:28 PM.

  2. #2
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Delete cells based on criteria

    Can anyone please help me with this kind of macro writing? Thanks

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Delete cells based on criteria

    See attached file where I added this macro in Module1:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Delete cells based on criteria

    This is perfect and exactly what I needed! Thank you so much, your help is invaluable.

  5. #5
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Delete cells based on criteria

    I'm glad you resolved your problem.

    Regards,
    Antonio

+ 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