Hello everyone.
I am a VBA beginner. I need your help to solve my problem.
Suppose that I have an Excel table with the following fields:
D: Account
L: Amount
M: Category
N: Value Day
What I need to do is the following:
Here is the code where I'd need to build on.
Dim LastRow As Long
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
Application.WorksheetFunction.Sumifs(Range("L2:L" & LastRow), Range("D2:D" & LastRow), "IBAN N.1", Range("M2:M" & LastRow), "Foreign Receipt", Range("N2:N" & LastRow), "27")
Any help is deeply appreciated.
I am a VBA beginner. I need your help to solve my problem.
Suppose that I have an Excel table with the following fields:
D: Account
L: Amount
M: Category
N: Value Day
What I need to do is the following:
- Compute the conditional sums of the amounts by all possible unique combinations of accounts, categories and value days that are shown in the table until the Last Row.
- Store the values coming from point 1 in a 3D array (without printing them in an Excel sheet)
Here is the code where I'd need to build on.
Dim LastRow As Long
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
Application.WorksheetFunction.Sumifs(Range("L2:L" & LastRow), Range("D2:D" & LastRow), "IBAN N.1", Range("M2:M" & LastRow), "Foreign Receipt", Range("N2:N" & LastRow), "27")
Any help is deeply appreciated.