You need to sign in to do that
Don't have an account?
Amanda Jones
Need formula to filter current year and month in custom field formula
I'm writing a formula field and need a little help to get it just right.
Here is the formula:
IF(( CloseDate )<=DATE(YEAR((CloseDate)),Month((CloseDate)),15),15,0)
The problem is that the formula is returning records for every year and I only want it return records for the current year. I have tried using the Today() function but I am not putting it in the right place.
Please help!
Thanks in advance.
Here is the formula:
IF(( CloseDate )<=DATE(YEAR((CloseDate)),Month((CloseDate)),15),15,0)
The problem is that the formula is returning records for every year and I only want it return records for the current year. I have tried using the Today() function but I am not putting it in the right place.
Please help!
Thanks in advance.
IF(YEAR(CloseDate) = YEAR(TODAY())&&DAY(CloseDate)<16&& Month(CloseDate)+1=Month(Today())
,15,0)
All Answers
I am not just looking for the year though.
I need the formula to return all the records that have a CloseDate on or before the 15th of the month for the current year only.
Right now my formula returns all records that have a CloseDate on or before the 15th for every year for every year.
Is there a way to add the Today() function into this formula:
IF(( CloseDate )<=DATE(YEAR((CloseDate)),Month((CloseDate)),15),15,0)
IF(YEAR(CloseDate) = YEAR(TODAY())&&DAY(CloseDate)<16&& Month(CloseDate)+1=Month(Today())
,15,0)