Dear Expert,
I am not familiar wih Function Array. But I think only array can solve this.
I have put into Excel file.
Column E is my dersired outcome.
If either exception 1 or exception 2 contains "x", shows blank
If both exception 1 & exception 2 contains "x" and then have to check if ID appears the first time
If ID appears the first time, set expiry date to be Date + 90 days
If ID appears not the first time, check if Trade date is greater than the first time expiry date for that ID
If it's greater than first time expiry, default remarks "passed expiry date"
If Trade date is smaller than the first time expiry date, refer to the first time expiry date for that ID
I hope expert can help me as a lot of conditions involved.
Thanks
Elton
Bookmarks