How can I ignore a blank cell in an IF formula?
I'm calculating the workdays between two days and updating the status in a different column. How do I make the formula ignore blank cells in the Install Difference column?
=IF([Install Difference]@row >= 21, "Late Over 4 Weeks", IF([Install Difference]@row >= 11, "Late Over 2 Weeks", IF([Install Difference]@row >= 2, "Late", IF([Install Difference]@row >= 1, "On Time", IF([Install Difference]@row < 1, "Early")))))
Answers
-
Hi @moorejr
You want to add an if statement around the formula above to state if [Install Difference]@row is not blank, …
So your formula would be
=IF([Install Difference]@row <> "", (IF([Install Difference]@row >= 21, "Late Over 4 Weeks", IF([Install Difference]@row >= 11, "Late Over 2 Weeks", IF([Install Difference]@row >= 2, "Late", IF([Install Difference]@row >= 1, "On Time", IF([Install Difference]@row < 1, "Early", "")))))), "")
Which would give the following results
If the blanks in the Install Difference column mean the install hasn't started yet you can change the above forumula to something like
=IF([Install Difference]@row <> "", (IF([Install Difference]@row >= 21, "Late Over 4 Weeks", IF([Install Difference]@row >= 11, "Late Over 2 Weeks", IF([Install Difference]@row >= 2, "Late", IF([Install Difference]@row >= 1, "On Time", IF([Install Difference]@row < 1, "Early", "")))))), "Install Not Started")
to get
Hope this helps :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!