If Contains Specific Year Formula
Hi,
I'm trying to use a formula that will look at a date column to populate another column. If year in that date column is 2022 I want the new column to say Not applicable, but my formula is not working.
=IF(CONTAINS(YEAR(2022), [First Receive]@row), "Not Applicable", "") but it's giving me an invalid data type error
Best Answer
-
Hello @Kaykay
Try something like this:
=IF(YEAR(Date@row) = 2022, "Not Applicable","")
Hope this helps!
Answers
-
Hello @Kaykay
Try something like this:
=IF(YEAR(Date@row) = 2022, "Not Applicable","")
Hope this helps!
-
Try this:
=IF(RIGHT([First Receive]@row, 2) = "22", "Not Applicable", "")
For some reason, none of the date functions seem to work, and using RIGHT with more than 2 characters isn't working either. I found that using just 2 characters from the right worked well
-
Thank you so much you guys! It worked. :) Have a wonderful day!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 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!