Reputation: 11
I'm trying to automate a task for myself to see if I can see if an item is "overdue". However, I also wanted to add in a feature where if the item has been returned, then I won't be warned that that item is overdue. This is what I came up with so far:
=IF(OR(AND(A2<=TODAY()-14)), AND(D2=returned),"Overdue","Not due")
I'm currently trialling a 2 week loan period, where if the item is returned not returned within 14 days, I want the B column to show "overdue".
In my excel sheet, I'm currently trying to have cell B2 to show "not due" because while it has been more than 14 days, the item has been "returned" as can be seen from column D.
Thank you.
Upvotes: 1
Views: 41
Reputation: 56
Try
=IF((OR(A2>TODAY(), D2="returned")), "Not Due", "Overdue")
LOWER(D2)
if you want to control for capitalizationUpvotes: 1