IF AND with Date
Hello,
I am trying to achieve the following:
If the date is grater than 2020,6,30 and the salespersonA is "D" and salespersonB is "T" then calculate 30% of net profit, otherwise leave the cell blank.
What I have so far is below and I have an error "#unparseabl"
=IF(AND(Date2676 > 2020, 6, 30, [SalespersonA]2676 = "D", [SalespersonB]2676 = "T"), ([Net Profit]2676 - 100) * 0.3, "")
I would greatly appreciate your help.
Thank you.
Best Answer
-
Try this...
=IF(AND(Date@row > DATE(2020, 06, 30), SalespersonA@row = "D", SalespersonB@row = "T"), ([Net Profit]2676 - 100) * 0.3)
The problem is with how you entered the date. You have to use a DATE function (in bold above).
DATE(yyyy, mm, dd)
Answers
-
Try this...
=IF(AND(Date@row > DATE(2020, 06, 30), SalespersonA@row = "D", SalespersonB@row = "T"), ([Net Profit]2676 - 100) * 0.3)
The problem is with how you entered the date. You have to use a DATE function (in bold above).
DATE(yyyy, mm, dd)
-
It worked!
Thank you Paul!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!