I am having fits with an excel formula I just cant figure out and sometimes more than one set of eyes can make short work of a problem. I have been chasing google results for many hours on this, so here I am finally begging for help.
One workbook with two tabs. Tab "import_1" contains imported data and is simply the account number (column A, accountNum), and the date the ticket was created (column B, Date_Created). Tab "import_2" contains imported data as well and is simply the account number (column A, accountNum), the date the second ticket was created (column B, Date_Created) and then the helper column that contains the unknown solution to my question (column C, Repeat_?).
Tab name "import_1":
accountNum | Date_Created
-------------|-------------
10000001 | 24-APR-2023 12:04:00 AM
10000002 | 25-APR-2023 12:04:00 AM
10000003 | 25-APR-2023 12:04:00 AM
10000004 | 25-APR-2023 12:04:00 AM
10000005 | 25-APR-2023 12:04:00 AM
Tab name "import_2":
accountNum | Date_Created | REPEAT_?
-------------|------------------------|----
10000001 | 04/23/2023 12:01:00 AM | No
10000001 | 04/24/2023 12:01:00 AM | No
10000001 | 04/24/2023 12:04:00 AM | Yes
10000001 | 04/24/2023 10:41:00 PM | Yes
10000005 | 04/29/2023 12:10:00 AM | Yes
The question is that I need to identify REPEAT tickets that are created by accountNum. The rules for what is a repeat are simple;
- accountNum on tab "import_2" has to also be found on tab "import_1"
- those accountNum's from tab "import_2" that are actually found on tab "import_1" then need to have thier date/time stamped at the same date/time or after from tab "import_1". If those two conditions are met then we have a 'Yes', if not then a 'No'. Yes obviously means it is a repeat ticket because it was created for the same account after the first ticket was created and no means it is not a repeat because the second ticket was created before the first ticket was.
Helper columns can be added if it will get us to a solution, but some sort of fancy formula in tab "import_2" column C would be the best result. I have tried: if, ifs, countif, countifs, nested if, index/match and I cannot get any to work. Some of those work fine for the first part in identifying the duplicate account numbers but when I try to include the equal to or after (for Date_Created) is where it all goes to crud. Your expertise and help would be greatly appreciated.
EDIT: Tab 'import_2" cell C3 corrected to No