Mar 10, 2023 11:37 PM
Hi Airtable Community!
I'm not sure what I'm doing wrong with this formula. We are changing our pay rates on April 1st and I want to program my payment field to reflect this change. My table has a date field called "Fecha !!!" and a lookup field for our new rates and our old rates.
If the record has a date before April 1st I want it to use the old rates. If it has a date on or after April 1st I want it to use the new rates. Here's what I have so far! I'm a beginner! Thanks for your patience and advice 🙂
Solved! Go to Solution.
Mar 11, 2023 03:39 AM - edited Mar 11, 2023 03:39 AM
You don't need the "=TRUE()" bit, and you need to format that April 1st as a date with DATETIME_PARSE(), so you'd end up with something like:
IF(
IS_BEFORE(
{Fecha !!!},
DATETIME_PARSE("01 04 2023", "DD MM YYYY")
),
{Old Rate},
{New Rate}
)
Mar 11, 2023 03:39 AM - edited Mar 11, 2023 03:39 AM
You don't need the "=TRUE()" bit, and you need to format that April 1st as a date with DATETIME_PARSE(), so you'd end up with something like:
IF(
IS_BEFORE(
{Fecha !!!},
DATETIME_PARSE("01 04 2023", "DD MM YYYY")
),
{Old Rate},
{New Rate}
)
Mar 13, 2023 02:43 PM - edited Mar 13, 2023 02:43 PM
Thanks so much! Makes perfect sense!