+ Reply to Thread
Results 1 to 2 of 2

Filtering Duplicates

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Filtering Duplicates

    I am trying to make a spreadsheet that will say “LATE” at the end of each column if the ship date is >17 days after the order date. The difficulty is that a purchase order is only considered late once, so it will need to look at the “PO” column and only return “LATE” once regardless of how many products shipped from this Po. Below is an example where only OrdNbr’s 2 and 6 should show as late. I do not want to use “remove duplicates” because I want the total number of orders to show also. I can easily do IF(ShipDate-OrderDate>17, “LATE”, “”) but how can I filter the duplicate PO’s without removing duplicates? Thanks for your help and time!

    OrdNbr PO OrdDate Ship Date Product#
    1 1251 9/1/2010 9/2/2010 A110
    2 1251 9/1/2010 9/20/2010 A111
    3 1251 9/1/2010 9/4/2010 A112
    4 551 9/2/2010 9/20/2010 A111
    5 551 9/2/2010 9/5/2010 A112
    6 551 9/2/2010 9/20/2010 A113

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filtering Duplicates

    PO nums in column B
    OrdDate in column C
    Ship Date in column D

    This formula in an empty cell in row 2, then copied down:

    =IF(D2-C2>17, IF(ISNUMBER(MATCH(B2&"Late", INDEX($B$1:$B1&$F$1:$F1, 0), 0)), "", "Late"), "")
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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