Exclude and If statement then "" and based on date then "Return Value"
=IF([Tier Status]@row <> "Group D", IF([Escalation Required]@row, <>"", (IF([WM Next Meeting Date]@row = "", "No Meeting Scheduled", IF([WM Next Meeting Date]@row = TODAY(-14), "Pending", IF([WM Next Meeting Date]@row > TODAY(-1), "Scheduled", IF([WM Next Meeting Date]@row < TODAY(-14), "Overdue"))))),"Escalated"))
What I'm trying to do:
- Exclude "Group D"
- If Escalation cell is not blank = "Escalated"
- If within 14 days before today's date = "Pending"
- If scheduled today or after = "Scheduled"
- If more than 14 days from today's date = "Overdue"
I get #incorrect after running the formula. What's the best way to write this?
Answers
-
Incorrect what exactly?
-
#Incorrect is the only thing that returns in all date cells with the date found.
If I remove (, "Escalated") from the escalation piece in the formula, the rest of the formula works but states #Invaliddate where I want it to say "escalated".
-
Try expanding the column width to see if there is more to the error message.
Here is the formula with the technically correct syntax.
=IF([Tier Status]@row <> "Group D", IF([Escalation Required]@row, <>"", IF([WM Next Meeting Date]@row = "", "No Meeting Scheduled", IF([WM Next Meeting Date]@row = TODAY(-14), "Pending", IF([WM Next Meeting Date]@row > TODAY(-1), "Scheduled", IF([WM Next Meeting Date]@row < TODAY(-14), "Overdue")))), "Escalated"))
-
I tried that as well. I'm getting #incorrect argument set...
-
One of these days parenthesis won't be a problem. Haha.
Give this a go...
=IF([Tier Status]@row <> "Group D", IF([Escalation Required]@row, <>"", IF([WM Next Meeting Date]@row = "", "No Meeting Scheduled", IF([WM Next Meeting Date]@row = TODAY(-14), "Pending", IF([WM Next Meeting Date]@row > TODAY(-1), "Scheduled", IF([WM Next Meeting Date]@row < TODAY(-14), "Overdue"))))), "Escalated"))
-
I really appreciate your help on this. The formula is working to a degree. Where there is an escalation marked, the data coming back in the cell with the formula now states #invalid data type.
-
Double check that all of your date columns are in fact date type columns. If they are, then there is non-date data in one of those columns (even though it may look like a date) which we would need to explore a little more.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!