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
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 466 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 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!