+ Reply to Thread
Results 1 to 2 of 2

Filter: Eliminate many rows in table based upon identical cells in two columns

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Filter: Eliminate many rows in table based upon identical cells in two columns

    Or, Eliminate Records (rows) based on two fields (cells) in the same record (row) being identical...

    I have a large amount of data that i wish to run calculations on a subset.

    The subset is comprised of all rows in the table (records) that the value in column 12 <> the value in column 13

    I first copied the table to a temporary worksheet, then sorted on column 12 in order to group portions of the data.

    I was thinking along the lines of a filter then deleting visible rows, but i am stumped as to what i can possibly, if anything, enter into Criteria1:= below:
    Please Login or Register  to view this content.
    Where Criteria1 would be looking at the next cell to the right in column 13 to see if it is equal to 12. Is this possible?

    Unfortunately it must be relative for the value can be different depending upon the record, sort of like:

    a b c d e f g h i j k duck frog
    a b c d e f g h i j k duck fish
    a b c d e f g h i j k duck duck
    a b c d e f g h i j k duck duck
    a b c d e f g h i j k duck duck
    a b c d e f g h i j k tree rock
    a b c d e f g h i j k tree bird
    a b c d e f g h i j k tree slug
    a b c d e f g h i j k tree tree
    a b c d e f g h i j k tree tree

    and after deleting the visible rows that have columns 12 = 13 i would be left with rows 1,2,6,7,8

    I know i could loop through them all, but i am trying to do something faster. Even my copy of the table is regrettable as the time it will waste, but i suspect necessary for i need to run a series of calcs on columns a - k...

    Thank-you for your genius!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Filter: Eliminate many rows in table based upon identical cells in two columns

    Hi Bruce,

    Yep this can be done using an Advanced Filter. See the attached. The trick is to put the formula to the right of the criteria with no column head. I've created 30 rows and 13 columns of random numbers. Learn Advanced Filters. AdvFilter Col12 not Col13.xlsx
    One test is worth a thousand opinions.
    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. Hide columns based on table filter
    By lucacarbi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2020, 07:11 AM
  2. [SOLVED] How to populate a column based on finding identical values in cells from other columns?
    By Gordon85 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-28-2020, 12:48 PM
  3. [SOLVED] Macro to filter based on the latest three (3) dates for each identical name
    By lxnliz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2019, 04:04 AM
  4. Filter Pivot table to eliminate showing certain data
    By rizmomin in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-10-2019, 06:03 PM
  5. How to filter data table by rows instead of columns?
    By onecupatatime in forum Excel General
    Replies: 11
    Last Post: 05-02-2015, 12:24 PM
  6. [SOLVED] Graciously requesting assistance aligning columns based on identical data in cells
    By roking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 01:34 PM
  7. [SOLVED] Filter function based on rows and columns
    By dj_420 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2012, 10:43 PM

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