Jun 30 2022 05:23 AM
Jun 30 2022 05:23 AM
Hello! I am hoping someone can help me write a complicated formula.
I have the following columns:
F: Payment Date
O: Payment Type
J: Payment Amount
I am trying to write a formula that will look at these columns and do the following:
Payment Date is in 2021
Grant Committed Date is prior to 2021
Payment Type is "Conditional" or "Conditions Satisfied"
Display Payment Amount
Conditions above are not met, leave cell blank
This is what I have right now but I'm doing something wrong:
Jul 07 2022 07:32 AM
@Quadruple_Pawn thank you SO much for your reply! This formula worked perfectly and you taught me about the YEAR function which is much neater than what I had been using. I improved my entire spreadsheet thanks to this. This may have seemed obvious to you but it seems like magic to me and I really appreciate you taking the time to respond and help me.
Jul 11 2022 06:42 PM
@Quadruple_Pawn hello! I'm still toiling away on this spreadsheet, trying to get all my formulas set up for future years. The column I'm working on now has the following conditions:
Column F: Grant Payment Date
Column J: Payment Amount
Column O: Payment Type
Grant Committed Date prior to 2021
Payment type NOT "conditional"
Payment type NOT "conditions satisfied" IF payment date is after 2020 OR payment date is blank
Insert Payment Amount
This is what I have now:
It is excluding the conditional payments correctly but not the ones marked conditions satisfied that were paid after 2020.
Again, I'm sure this is something obvious I'm doing wrong, but I would appreciate your guidance! Thank you!
Jul 12 2022 06:58 AM
=IF(AND(YEAR(D6)<2021,O6="Conditions Satisfied",YEAR(F6)>2020),"",IF(AND(YEAR(D6)<2021,O6<>"Conditional",(OR(O6="Conditions Satisfied",AND(OR(YEAR(F6)>2020,F6=""))))),J6,""))
Does this formula return your expected result? Unfortunately i'm not sure if i correctly understand what you want to do. As your formula excludes the conditional payments correctly i only added an additional IF statement for conditions satisfied that were paid after 2020.