+ Reply to Thread
Results 1 to 5 of 5

Deleting rows on one sheet based on a condition in another sheet in the same file

  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    69

    Deleting rows on one sheet based on a condition in another sheet in the same file

    Hello,

    I have a column of data on one sheet in a file and a column of data on another sheet in the same file. I was wondering how you could delete a row on one sheet if the other sheet contained a row that had the identical value.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Deleting rows on one sheet based on a condition in another sheet in the same file

    As an example, this will delete row 1 in sheet1 if the value in A1 on sheet1 exists in column A in sheet2:
    Please Login or Register  to view this content.
    as a loop for all of sheet1 column A:
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Deleting rows on one sheet based on a condition in another sheet in the same file

    would this help you?
    DeleteDuplicates.xlsm
    Click on the star if you think I helped you

  4. #4
    Registered User
    Join Date
    11-17-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Deleting rows on one sheet based on a condition in another sheet in the same file

    It most certainly does adyteo, thank you very much for that. Will add to your reputation.

  5. #5
    Registered User
    Join Date
    11-17-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Deleting rows on one sheet based on a condition in another sheet in the same file

    Terrific ragulduy, your method just proves that there is more than one way to do the same thing. Thank you very much for your assistance and your prompt response, will add to your reputation for you.

+ 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. [SOLVED] Hiding rows based on condition within another sheet
    By Impjegat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2013, 01:45 PM
  2. Copy rows from one sheet to another,while deleting from source,under condition
    By piulibero in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2011, 04:35 AM
  3. Replies: 4
    Last Post: 01-20-2011, 03:39 AM
  4. Copying Rows to New Sheet Based On Condition
    By Az_Outlaw in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-29-2010, 04:06 PM
  5. Copying rows to new sheet based on condition
    By nraz76 in forum Excel General
    Replies: 5
    Last Post: 10-20-2009, 11:29 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