Hi
I'd appreciate help on the correct syntax for a SUMIF formula using dynamic ranges from variables
The following basic formula works great, but I need to use dynamic ranges and have failed in my attempts
=Sumif(A:A,A5,K:K)
this sums the values in Column K where the value in Column A matches A5
I want the ranges in A and K to start at say row 28 and end at a row number that is read from a variable called lastrow. As an example assume lastrow value is 50. So the eventual formula to be executed would look like
=Sumif(A28:A50,A5,K28:K50) How do I replace the A50 and K50 with A+lastrow and K+lastrow
Thanks in advance for help
I'd appreciate help on the correct syntax for a SUMIF formula using dynamic ranges from variables
The following basic formula works great, but I need to use dynamic ranges and have failed in my attempts
=Sumif(A:A,A5,K:K)
this sums the values in Column K where the value in Column A matches A5
I want the ranges in A and K to start at say row 28 and end at a row number that is read from a variable called lastrow. As an example assume lastrow value is 50. So the eventual formula to be executed would look like
=Sumif(A28:A50,A5,K28:K50) How do I replace the A50 and K50 with A+lastrow and K+lastrow
Thanks in advance for help