Nested If Statements
I'm trying to check a box to indicate whether a remediation item has been opened or closed in the past year.
My relevant fields are report date, target date, and date closed. Date Closed could potentially be blank.
Here is the formula I've been trying to refine: =IF(OR(TODAY() - [Report Date]77 < 365, TODAY() - [Last Remed Target Date]77 < 365), IF(NOT(ISBLANK([Date Closed]77)), IF(TODAY() - [Date Closed]77 < 365, 1, 0, 0, 0)))
I'm sure my brackets are incorrect at this point. Can someone please help me correct this?
Comments
-
I think your issue may be with
IF(TODAY() - [Date Closed]77 < 365, 1, 0, 0, 0)
The if should have 3 parameters
condition, if true, if fals
You have 5 parameters in that if .... i guess some of those 0s belong with the other ifs
maybe you meant
=IF(OR(TODAY() - [Report Date]77 < 365, TODAY() - [Last Remed Target Date]77 < 365), IF(NOT(ISBLANK([Date Closed]77)), IF(TODAY() - [Date Closed]77 < 365, 1, 0), 0), 0)
-
I definitely know the three 0's at the end are wrong. I had tried several variations with the aid of a coworker and finally just decided to waive the white flag.
I've tried what you've proposed above and still get "#Invalid Operation".
-
Maybe there is something with one of your field names then? I tried the following in a test sheet that i have and i did not get an error
=IF(OR(TODAY() - TestDate1 < 365, TODAY() - TestDate2 < 365), IF(NOT(ISBLANK(TestDate3)), IF(TODAY() - TestDate4 < 365, 1, 0), 0), 0)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!