Using =IF(AND) formula
Hello,
I'm trying to create a sheet summary formula that will return a "1" result if the following criteria are met: 1) the Sheet Summary field "Application Status" is showing "APPS ON HAND", and 2) the date in the sheet summary field "Oldest App on Hand" is more than five days prior to the current date. Otherwise, I want to result to be "0"
Here is my current formula and I am getting an #INCORRECT ARGUMENT error
=IF(AND([Application Status]# = "APPS ON HAND", [Oldest App on Hand]# < TODAY() - 5, 1, 0))
Thank you!
Best Answer
-
Hi
You have the closing parenthesis for the AND after the values to return for the IF. If you move it to here, you should be fine:
=IF(AND([Application Status]# = "APPS ON HAND", [Oldest App on Hand]# < TODAY() - 5), 1, 0)
Answers
-
Hi
You have the closing parenthesis for the AND after the values to return for the IF. If you move it to here, you should be fine:
=IF(AND([Application Status]# = "APPS ON HAND", [Oldest App on Hand]# < TODAY() - 5), 1, 0)
-
Awesome, thank you! I knew it had to be some little mistake like that. It's working now!
-
Great news!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!