Embedding IFERROR into an existing formula
I need some help as to how to embed an IFERROR function into this formula:
=IF([Group Contract Anticipated]438 = 0, "Gray", IF(ISBLANK([Deposit Due Date]438), "Gray", IF(ISDATE([Deposit Sent]438), "Green", IF(TODAY() - [Deposit Due Date]438 <= -10, "Green", IF(TODAY() - [Deposit Due Date]438 > -7, "Red", IF(TODAY() - [Deposit Due Date]438 > -10, "Yellow"))))))
Someone could put N/A in one of those columns and it comes up as an invalid value, when it's actually fine. I want it to display N/A.
I'm not 100% sure if IFERROR is even the right function to use. Any help would be appreciated!
-Sarah
Comments
-
Hi Sarah.Try this:
=IFERROR(IF([Group Contract Anticipated]438 = 0, "Gray", IF(ISBLANK([Deposit Due Date]438), "Gray", IF(ISDATE([Deposit Sent]438), "Green", IF(TODAY() - [Deposit Due Date]438 <= -10, "Green", IF(TODAY() - [Deposit Due Date]438 > -7, "Red", IF(TODAY() - [Deposit Due Date]438 > -10, "Yellow")))))),"N/A")
-
Would you want N/A to be gray or empty?
-
I would like N/A to actually say N/A. I don't know if you can do that in one of those RYGG columns, though. I guess I would prefer it to be gray if I had to choose.
-
That worked. Thank you. Sometimes I have an issue with the order of operations in these formulas. I never really used them in Excel so Smartsheet is basically my first exposure to them.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 443 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 129 Brandfolder
- 149 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!