嗨
我想知道如果有一种方式,我希望它总结Invoice_list_Price
如果它有一个或两个"(Custom) CREDIT"
或"CREDIT"
标准,我可以conbine这两个宏,
谢谢。在VBA WorksheetFunction.Sumifs使用或者和+标准
Range("DebtorList_Credit") = Application.SumIfs(_
Range("Invoice_list_Price"), _
Range("Invoice_list_Debtor"), _
Range("Debtor_list_Debtors"), _
Range("InvoiceList_Payed"), _
"CREDIT")
Range("DebtorList_Credit") = Application.SumIfs(_
Range("Invoice_list_Price"), _
Range("Invoice_list_Debtor"), _
Range("Debtor_list_Debtors"), _
Range("InvoiceList_Payed"), _
"(Custom) CREDIT")
你确定你的代码运行?典型的使用是这样的:http://www.excel-examples.com/sumifs.htm – 2010-10-30 15:39:11
是的代码工作正常,它只是不会让我结合2. – James 2010-10-30 19:45:10