Before making this post, I have read the following posts:
- Sum by month in Google Sheet
- Getting sum of the amount per month - Google Sheet
- Google Sheets Sumifs with date condition
And the following websites' pages:
What I try to do is just to do a conditional sumation between the elements of a range contained in a column if they meet the condition of being within a month. The setup of my sheet is the following:
- A named range DATES (A4:A1000)
- A named range EXPENSES (C4:C1000)
And I have tried the following functions (A6 is a cell that contains a Date):
- = SUMPRODUCT(EXPENSES, --(MONTH(DATES) = MONTH(A6))) [This one seems to work only in Excel]
- = SUMIFS(EXPENSES, DATES, ">="&DATE(YEAR(A6), MONTH(A6), 1), DATES, "<="&EOMONTH(A6,0))
- = ArrayFormula(SUMIFS(EXPENSES, MONTH(DATES), 12, YEAR(DATES), 2020))
- ={{unique(ArrayFormula(text(DATES,"MMMM")))}, {ArrayFormula(sumif(ArrayFormula(text(DATES,"MMMM")), unique(ArrayFormula(text(DATES,"MMMM"))),EXPENSES))}}
- etc.
All attempts return me a "Formula Parse Error" with the code #ERROR (Meaning Google Sheets cannot make sense of the formula you have written). I honestly don't know where is my error, whether I pass incorrect parameter types or forget to add braces, commas, etc.
SUMIFS()
should work. Can you shoe some sample data? – Harun24HR