Duplicates from a a previous date
Hi All,
I'm currently trying to create a formula to count a row as a duplicate if the same information was entered the day before.
Example:
[Duplicate 2] formula is currently the following (but I know is wrong):
=IF(COUNTIFS(Orders:Orders, Orders@row, Date:Date, Date@row, Reasons:Reasons, Reasons@row) > 1, 1, 0)
I want the formula to compare the Orders and Reasons column and if they are the same from the PREVIOUS day, then I want to check the box in the [Duplicate 2] column. Hope that makes sense.
Any suggestions?
Thanks,
Luke
Best Answer
-
Subtract 1 from the Date@row to specify "the day before" and then change the argument to greater than zero:
=IF(COUNTIFS(Orders:Orders, Orders@row, Date:Date, Date@row - 1, Reasons:Reasons, Reasons@row) > 0, 1, 0)
Answers
-
Subtract 1 from the Date@row to specify "the day before" and then change the argument to greater than zero:
=IF(COUNTIFS(Orders:Orders, Orders@row, Date:Date, Date@row - 1, Reasons:Reasons, Reasons@row) > 0, 1, 0)
-
That did the trick! Thank you, Paul!
It's always something simple... 😀
-
Happy to help. 👍️
Help Article Resources
Categories
Check out the Formula Handbook template!