If statements with <>, blanks, and errors
Need assistance putting all my "if conditions" into a single formula if possible
Answers
-
First, can you add an IFERROR(*column formula here*,"") to the Due column to make it blank instead of giving an error?
Then use this formula:
=IF(Due@row="",0,IF(Due@row<Sent@row,1,IF(AND(Due@row<TODAY(),Sent@row=""),1,IF(Due@row>=Sent@row,1,IF(AND(Due@row>=TODAY(),Sent@row=""),1,"")))))
-
=iferror(if(or(due@row<today(),due@row<sent@row),1,0),0)
Seems like it should work. Your records 2 and 4 are just the false conditions of your records 1 and 3, so you get them evaluated for free. Your 1 and 3 apply as an "or" condition (it isn't due yet OR it got done early) so both of your false conditions are an implied "and" (it is due AND it isn't done). You can put whichever one of them you want first, but if you go with the result 0 values first make sure to choose an "and" test vs an "or". Incidentally - with your conditions the way they are, if someone gets it done on the day it is due you are counting it as late.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!