# Trouble with IF Statement Calculated Property

**URL:** <https://community.hubspot.com/t/trouble-with-if-statement-calculated-property/121353>\
**Category:** CRM\
**Tags:** crm\
**Created:** [November 26, 2024, 12:53am UTC](https://community.hubspot.com/t/trouble-with-if-statement-calculated-property/121353 "2024-11-26T00:53:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spogue](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/spogue/32/73227_2.png) [@spogue](https://community.hubspot.com/u/spogue)\
**Post date:** [November 26, 2024, 12:53am UTC](https://community.hubspot.com/t/trouble-with-if-statement-calculated-property/121353/1 "2024-11-26T00:53:26Z")

</div>

Hi, I am trying to create a calculated property to identify if the Close Date on a Deal is the current year or not.

Here’s what I have so far:

=if(year([properties.close\_date\_plain])=year([properties.today\_s\_date]),true,false)

Notes:

- Each of the Date properties are “DATE” properties

- I’m only receiving “There is a problem with your formula.” as guidance

- Yes, I felt it necessary to create an alternate close date to match the date type, hence the “DATE” property type.

Can anyone lend a hand? Thanks!

 ![Screenshot 2024-11-25 at 7.52.44 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/7/f775b67715f759d2bbe2cc58ef301821afdfd27a.png)

---

<div class="post-metadata">

**Author:** ![spogue](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/spogue/32/73227_2.png) [@spogue](https://community.hubspot.com/u/spogue)\
**Post date:** [November 26, 2024, 1:21am UTC](https://community.hubspot.com/t/trouble-with-if-statement-calculated-property/121353/2 "2024-11-26T01:21:53Z")

</div>

Can I solve my own post? I removed the equals sign :facepalm: 😅😅
