In a current Google Sheets book (on the main tab, named "Master") this formula currently sits in Column E, starting in Row 3, going down to the end of the sheet.
=IFS(V3="","",AND(V3<>"", AJ3=""),"Needs Invoice"
,AND(AJ3<>"", AM3=""),"Payment Due",AI3<>AN3,"Partial Payment Due",AI3=AN3,"Paid")
For clarity:
- If "V" is blank, "E" is also blank
- If "V" is NOT blank and AJ is blank, "E" is "Needs Invoice"
- If AJ is NOT blank and AM is blank, "E" is "Payment Due"
- If AI and AN both have values and are NOT equal, "E" is "Partial Payment Due"
- If AI and AN both have values and are equal, "E" is "Paid"
This works for what I need it to do, but I'd much rather have this as a script to fill column E and run on edit of columns V, AI, AJ, AM or AN (the columns used in the above formula).
I have no idea how to go about getting this started, as it is way above my skill level. Any help would be great!