I am having some difficulty trying to get my formula correct, here is the formula below but if there is “ESD” or “ETA” in “1st GI” or “ 2nd GI” then I want to say “ In Transit” but when I run the workflow it shows “Delivered”, can someone tell me what is wrong with my formula so I can change it?
IF [1st GI]>"2023-01-01" AND [2nd GI]>"2023-01-01"
THEN "Delivered"
ELSEIF
Contains ([1st GI],'ESD') OR >"2023-01-01" AND (ISEMPTY([2nd GI]) OR Contains([2nd GI],'ETA'))
THEN "In Transit"
ELSE "Planning TBD"
ENDIF
PN Qty 1st GI 2nd GI
A 1 1/25/2023 1/28/2023
B 1 ESD 05/17 ETA 05/19 (was expecting "in transit")
C 72 1/30/2023 ETA 02/03 (was expecting "in transit")