Hello, I have difficulties in writing this sumpr. formula in vba:
sumproduct(--(A2:A200="A");--(B2:B200)) it ried this but to no avail..combobox1 are the values in A and sumvalue is column B. The formula is supposed to account for changes in the criteria in column A. Thank you very much in advance!
Range("AC1").Formula = "=sumproduct(--(Me.ComboBox1 & """" ),--(sumvalue)"
Bookmarks