IF(AND) Syntax Question
I am trying to correct the SYNTAX for the below scenario as I repeatedly get #INCORRECT ARGUEMENT SET as a result on line 3.
In the column labeled "Today" I have the following formulas:
LINE 1 =IF(MONTH(TODAY()) = [DOJ Anniversary (M)]1, "YES", "NO") ..... This returns the expected result.
LINE 2 =IF(MONTH(TODAY()) = [DOJ Anniversary (D)]2, "YES", "NO") ..... This returns the expected result.
LINE 3 =IF(AND(MONTH(TODAY()) = [DOJ Anniversary (M)]3, (DAY(TODAY()) = [DOJ Anniversary (D)]3), "YES", "NO")) ..... This returns #INCORRECT ARGUEMENT SET.
I suspect it is a simple mistake I have made in the syntax but haven't been able to solve for yet.
Your extra set of eyes are appreciated.
Bill
Comments
-
Try the following. You had a n open paragraph for your second and criterion and and additional end parenthesis.
=IF(AND(MONTH(TODAY()) = [DOJ Anniversary (M)]3, DAY(TODAY()) = [DOJ Anniversary (D)]3), "YES", "NO")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!