Forum Discussion
NoraJJ
Mar 01, 2021Copper Contributor
Add IF layer to a established Lookup formula
This is my working formula for the spreadsheet:
Cell F2 =LOOKUP(DAYS360(B2,TODAY()),{-1000,3,7,30},{"Less than 3 days","Less than 7 days","Less than 30 days","Over 30 days"})
I need to add a layer to this formula:
In column D2 the cells have either "Yes" or "No" in them. If the cell has yes then the response in Cell F2 needs to say "complete". Only if cell D2 says "No" would I need the answers from my above lookup.
You simply add IF in F2, like this:
=IF(D2="Yes","Complete", LOOKUP(DAYS360(B2,TODAY()),{-1000,3,7,30},{"Less than 3 days","Less than 7 days","Less than 30 days","Over 30 days"}))
5 Replies
- TwifooSilver Contributor
You simply add IF in F2, like this:
=IF(D2="Yes","Complete", LOOKUP(DAYS360(B2,TODAY()),{-1000,3,7,30},{"Less than 3 days","Less than 7 days","Less than 30 days","Over 30 days"})) - mathetesGold ContributorTry =IFS(D2="Yes","Complete",D2="No",LOOKUP(DAYS360(B2,TODAY()),{-1000,3,7,30},{"Less than 3 days","Less than 7 days","Less than 30 days","Over 30 days"}))
Note that this is the IFS function, not IF'; so you could add other conditions for cell D2- NoraJJCopper ContributorThank you for your time and input.