What I have:
- I have two spreadsheets in a workbook titled "Ledger" and "Budget".
- "Budget" uses SUMIF on "Ledger" to find the total "Weekly rent".
"Ledger" spreadsheet:
"Budget" spreadsheet:
What I need:
I need the SUMIF function to simultaneously work with a date range. e.g. In the "Budget" spreadsheet, the desired SUMIF value (Cell O8) should be constrained by "Week start" (Cell B8) and "Week end" (Cell C8). Right now, as depicted in the screenshots, the SUMIF does not apply the date range criteria.
My code:
For cell O8:
=SUMIF(Ledger!M:M, "Weekly rent", Ledger!P:P)
My question:
How do I include the date criteria using "Week start" (Cell B8) and "Week end" (Cell C8)?
SUMIFS
which can use more than 1 condition. Otherwise useSUMPRODUCT
. There are plenty of examples of both on SO – chris neilsen