Sum up column B based on colum C values
问题 I have a quick question: I try to sum up in a table of 4 columns column number 2 if the value in column number 1 AND 3 matches. I found a sample code here on stack overflow, but it counts currently based on column 1. I'm new to VBA and don't know what to change or how to adjust the code to base my calculations on column 1 and 3. Here is the sample code: Option Explicit Sub testFunction() Dim rng As Excel.Range Dim arrProducts() As String Dim i As Long Set rng = Sheet1.Range("A2:A9")