# Re: Month and Year Formula

Solved
472 0
cancel
Showing results for
Did you mean:
6 - Interface Innovator

Hi Everyone!

So I would like a formula field where it shows the month and year of the End Date match the month and year today, say "This Month". I only know month and year separately as shown below however, I want them together in a single-sentence formula.

IF( MONTH({END Date}) = MONTH(TODAY()),"This Month")
IF( YEAR({1st Payment Date}) = YEAR(TODAY()),"This Year")
1 Solution

Accepted Solutions
7 - App Architect

That would be the same formula, just changing the month-checking field from "END Date" to "1st Payment Date" :

IF(
MONTH({1st Payment Date}) = MONTH(TODAY()),
IF(
YEAR({1st Payment Date}) = YEAR(TODAY()),
"Yes, same month and year",
"Same month, different year"),
"Not same month"
)
4 Replies 4
7 - App Architect

Yvia, try this formula:

IF(
MONTH({END Date}) = MONTH(TODAY()),
IF(
YEAR({1st Payment Date}) = YEAR(TODAY()),
"Yes, same month and year",
"Same month, different year"),
"Not same month"
)
6 - Interface Innovator

Thanks, Ron!

How about if I want to have month and year in single sentence formula for 1st payment?

IF( MONTH({1st Payment Date}) = MONTH(TODAY()),"This Month")
IF( YEAR({1st Payment Date}) = YEAR(TODAY()),"This Year")
7 - App Architect

That would be the same formula, just changing the month-checking field from "END Date" to "1st Payment Date" :

IF(
MONTH({1st Payment Date}) = MONTH(TODAY()),
IF(
YEAR({1st Payment Date}) = YEAR(TODAY()),
"Yes, same month and year",
"Same month, different year"),
"Not same month"
)
6 - Interface Innovator

Thanks Ron!