I am trying to do a formula in the Effective Date Determination column. I am trying to get the workflow to do the follow:
1. If effective date2 is empty, then effective date1.
2. If effective date2 is not empty, but tax year beginning is less than or equal to effective date1, then effective date1.
3. If effective date2 is not empty, but tax year beginning is after effective date1, but before effective date 2, then effective date1.
4. if effective date2 is not empty and tax year beginning is after or equal to effective date2 then effective date2.
You can see that the formula is not being applied properly to records 2 and 6. I've attached my test data and a screen shot of my formulas. Thanks in advance for your help!
| | | | | | Workflow Results | Desired Results | |
| Record ID | Tax Year Beginning | Tax Year Ending | Effective Date1 | Effective Date2 | Effective Date Determination | Effective Date Determination | |
| 1 | 12/1/2019 | 11/30/2020 | 1/1/2020 | | 1/1/2020 | 1/1/2020 | TRUE |
| 2 | 12/1/2019 | 11/30/2020 | 1/1/2020 | 1/1/2021 | 1/1/2021 | 1/1/2020 | FALSE |
| 3 | 1/1/2020 | 12/31/2020 | 1/1/2020 | | 1/1/2020 | 1/1/2020 | TRUE |
| 4 | 1/1/2020 | 12/31/2020 | 1/1/2020 | 1/1/2021 | 1/1/2020 | 1/1/2020 | TRUE |
| 5 | 6/30/2020 | 5/31/2021 | 1/1/2020 | | 1/1/2020 | 1/1/2020 | TRUE |
| 6 | 6/30/2020 | 5/31/2021 | 1/1/2020 | 1/1/2021 | 1/1/2021 | 1/1/2020 | FALSE |
| 7 | 1/1/2021 | 12/31/2021 | 1/1/2020 | | 1/1/2020 | 1/1/2020 | TRUE |
| 8 | 1/1/2021 | 12/31/2021 | 1/1/2020 | 1/1/2021 | 1/1/2021 | 1/1/2021 | TRUE |
| 9 | 6/30/2021 | 5/31/2022 | 1/1/2020 | | 1/1/2020 | 1/1/2020 | TRUE |
| 10 | 6/30/2021 | 5/31/2022 | 1/1/2020 | 1/1/2021 | 1/1/2021 | 1/1/2021 | TRUE |
