+ Reply to Thread
Results 1 to 4 of 4

Loop through Column & delete entire row if Value is found

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Loop through Column & delete entire row if Value is found

    Hi Guys,

    I have a bunch of data in a spreadsheet (1000's of rows), I want to run a code that will loop through Column AC and if it finds the Cell value = "Spread" or & "Calendar Spread" than to delete the entire row.

    A desensitized spreadsheet is attached for you reference.

    Thank you!
    Last edited by AliGW; 10-27-2018 at 02:39 AM. Reason: Spreadsheet remoived as requested by OP - sensitive data therein.

  2. #2
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: Loop through Column & delete entire row if Value is found

    Is there a reason you want a loop? The simplest way would be to do this using filtering. Also, I'm see "Spread" and "Calendar Spread" in column AD, not AC as mentioned. Please let us know which one is correct.

    Thanks!

  3. #3
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Loop through Column & delete entire row if Value is found

    I need it to be in VBA, I am not able to do this manually, it certainly can be a filter that deletes them, as long as the entire row with those strings in Column AC gets deleted

  4. #4
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Loop through Column & delete entire row if Value is found

    Hi,
    Try this, hope its meets your needs.
    I took column B (2) assuming that there is always data in column B.
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

+ 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. Found?, then delete entire rows. Not found end sub
    By Andrewstupendo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2018, 01:56 PM
  2. delete the entire row until column x if value '2' is found in column J?
    By SHELLY567 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2018, 11:23 PM
  3. [SOLVED] delete entire row when value is found
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2015, 03:06 AM
  4. [SOLVED] Delete Entire Row if Blank is Found in Column
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-17-2014, 11:28 PM
  5. delete the entire row if duplicate found in column
    By gujugolf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 04:07 PM
  6. delete entire row if 'value' found anywhere in column - most efficient way?
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-25-2012, 08:21 AM
  7. Replies: 6
    Last Post: 05-24-2012, 09:14 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