+ Reply to Thread
Results 1 to 7 of 7

Removing rows that do not meet a condition, to avoid duplication

  1. #1
    Registered User
    Join Date
    06-15-2020
    Location
    bay area, ca
    MS-Off Ver
    2010
    Posts
    4

    Removing rows that do not meet a condition, to avoid duplication

    Hi,
    I am trying to avoid calculations on certain rows that I pull from the database.

    If cell value in column B is repeated (duplicate) value across the entire column B, then only pick the row with earliest date in column A for the cell value in column B, and delete all other duplicate rows. See raw data example below and expected data below. How do I do this using formula?

    A B
    4/5/20 5
    4/6/20 5
    4/10/20 5
    4/10/20 8
    4/10/20 9
    4/13/20 9
    4/10/20 12
    4/11/20 12
    4/14/20 9
    4/10/20 3

    Expected result

    A B
    4/5/20 5
    4/10/20 8
    4/10/20 9
    4/10/20 12
    4/10/20 3

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Removing rows that do not meet a condition, to avoid duplication

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-15-2020
    Location
    bay area, ca
    MS-Off Ver
    2010
    Posts
    4

    Re: Removing rows that do not meet a condition, to avoid duplication

    Admin,
    I cant find "Advanced" i can not find "quick post" either.

  4. #4
    Registered User
    Join Date
    06-15-2020
    Location
    bay area, ca
    MS-Off Ver
    2010
    Posts
    4

    Re: Removing rows that do not meet a condition, to avoid duplication

    Found it, uploaded the sample excel file. Please help!
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Removing rows that do not meet a condition, to avoid duplication

    Formulas cannot delete or add rows, they can only affect the cell they reside it. You would either need VBA for this, or you could create a 2nd table to pull your unique entries into

  6. #6
    Registered User
    Join Date
    06-15-2020
    Location
    bay area, ca
    MS-Off Ver
    2010
    Posts
    4

    Re: Removing rows that do not meet a condition, to avoid duplication

    Lets say i use another table, what formula will allow me to pull those specific rows?

  7. #7
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Removing rows that do not meet a condition, to avoid duplication

    See if this works for you. Adjust named range (list), and other fields in formulas.

    Pete
    Attached Files Attached Files

+ 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 avoid duplication of results
    By Nobleks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2019, 12:51 PM
  2. [SOLVED] How to Avoid Duplication in Vlookup Result?
    By siroopm in forum Excel General
    Replies: 4
    Last Post: 12-31-2017, 01:53 PM
  3. Avoid Duplication in Column with Matching
    By atif574 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2014, 06:59 AM
  4. Replies: 1
    Last Post: 05-11-2013, 02:58 AM
  5. Replies: 0
    Last Post: 03-29-2011, 03:10 PM
  6. Multiple Userforms - Avoid code duplication
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2006, 11:25 PM
  7. [SOLVED] avoid duplication in a column in excel
    By S.G.Pillai in forum Excel General
    Replies: 1
    Last Post: 07-24-2006, 10:00 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