I am using a Macro to Sum up Values of a specific Debtor. It currently works fine but I need to add another Criteria;
Range("DebtorList_Payed")=Application.SumIf(Range("InvoiceList_Table_ItmCode"), _
Range("Debtor_list_Debtors"), Range("InvoiceList_Price"))
I have another Range on the Invoice List Worksheet called Range("InvoiceList_Payed") in this row there is "CASH", "CREDIT", "(Custom) CASH" & "(Custom) CREDIT".
The text in the "CASH" & "(Custom) CASH" Rows is Green and the text in the "CREDIT" & "(Custom) CREDIT" Rows is Red
Using the existing Macro I need for it to only sum the Rows which in the corresponding Range("InvoiceList_Payed") the Text Color is Green,
So something like;
Range("DebtorList_Payed")=Application.SumIf(Range("InvoiceList_Table_ItmCode"), _
Range("Debtor_list_Debtors"), Range("InvoiceList_Price") = _
Range("InvoiceList_Payed")> "Green"))