+ Reply to Thread
Results 1 to 2 of 2

Remove rows from a table based upon multiple column criteria

  1. #1
    Registered User
    Join Date
    07-19-2017
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    1

    Question Remove rows from a table based upon multiple column criteria

    I have an excel table with thousands of rows that are past client purchases. The columns are Client Number, Client Name, GP, Days, GP/Day, Year, and State. The years range from 2013-2017. Because this list is based on purchases, there are client duplicates. I want to remove all client duplicates and their respective rows if the client has purchases in 2017. For example, say there are 3 Wal-Mart rows with different years in each row, if one of these rows has the year 2017 I want all rows containing Wal-Mart removed.

    I'm hoping there is a formula for this, any ideas?

    Its not a filter because if you filter out the year 2017 there may still be client duplicates with purchases in earlier years.

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Remove rows from a table based upon multiple column criteria

    There is no formula that will delete rows. That is not how Excel works. You might be able to write a macro to do it though.

    However, you could write a formula to identify the rows to be deleted and then filter on that formula result.

    For example, something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will show a 0 if the year in the row is 2017, or if there are no entries for that client in 2017. You can then filter all non-0 data and delete those rows.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

+ 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. Formula to Sum 3 Column Values based on Multiple Criteria for Multiple Rows
    By RMerckling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2016, 07:46 PM
  2. copying multiple rows based on column criteria
    By harrydnyc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2016, 06:08 PM
  3. Remove rows when a column is found to contain multiple criteria
    By cmorten82 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-08-2016, 05:59 PM
  4. Replies: 11
    Last Post: 02-16-2016, 11:06 PM
  5. Adding rows based on multiple column criteria
    By PitBoo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2015, 06:53 PM
  6. [SOLVED] Remove multiple rows based on multiple cell's criteria
    By wyanrandy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2012, 04:28 PM
  7. Remove data based on criteria from multiple columns and rows
    By jvegastn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2009, 11:42 AM

Tags for this Thread

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