I'm trying to see what's wrong with this formula but I'm not seeing it:
=IF(F5:M5;"*Accepted*";IF(F5:M5;">"&TODAY();IF(F5:M5;"*N/A*";"Verified";"Pending")))
Do i missed something? What I'm trying to do is, if the values of F5 to M5 are one of theese conditions, then the column "State" will be verified, if one of the values are not Accepted, greater than today(), or "N/A", then State will be "Pending".
Document1 | Document2 | Document3 | Document4 | Document5 | Document6 | Document7 | Document8 | Status |
---|---|---|---|---|---|---|---|---|
Expired | Expired | 31/12/2020 | 30/12/2020 | Accepted | Accepted | N/A | 24/11/2021 | |
24/12/2020 | 44197 | 30/12/2020 | 30/12/2020 | Accepted | Empty | N/A | 44563 | |
Expired | Expired | Rejected | 44234 | Accepted | Accepted | N/A | N/A | |
Expired | Expired | Incomplete | Incomplete | Accepted | Empty | N/A | N/A | |
44378 | 44228 | Expired | 44203 | Accepted | Accepted | N/A | Rejected | Pending |
Accepted | Accepted | Accepted | 44197 | Accepted | Accepted | N/A | N/A | Accepted |
You have 3 criteria you need to check
Accepted
N/A
Today()
If you individually sum the criteria for each row you should end up with 8
( ie all eight cells in your columns meet one of the criteria listed above ). If the count is less than 8 then one of the values does not meet the criteria and should be Pending
as a result.
=IF(COUNTIF(A2:H2,"Accepted")+COUNTIF(A2:H2,"N/A")+COUNTIF(A2:H2,">"&TODAY())=8,"Verified","Pending")
This will do what you want, you can add an IF to get "Verified" and "Pending" instead of True and False, but it works:
=NOT(ISERROR(MATCH(A2:H2;$L$1:$N$1;-1)))
Where L1:N1
is an array containing my 3 lookup values: Accepted, Today and N/A, and it's entered as an Array formula with Ctrl + Shift + Enter Tested on this dataset:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.