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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!