I have a Google Sheet with multiple tabs. What I want to do is look across one tab (Expenses), and find all the expenses for a given date, then within that find only a specific month. Here's what I have so far, but I keep getting #VALUE!
=SUMIFS('Expenses'!$E$4:$E,'Expenses'!$D$4:$D, ">="&DATE($E$3, $C$3, $D$3),'Expenses'!$D$4:$D, "<="&DATE($I$3, $G$3, $H$3), MONTH('Expenses'!$D$4:$D), 3)So, if I put in 1/1/23 and 12/31/23, I'm hoping that it will find all expenses in March 23, add them together, and spit out an answer.
EDITS FOR CLARITY:
- Expenses' E column is a list of costs ($1.00, $10.00, $6.75, etc).
- Expenses' D column is a list of dates (1 May 2022, 10 Aug 2023, 18Sep 2024, etc).
- In the where I want the results to appear, E3/I3 = Year start/end,C3/G3 = Month start/end, and D3/H3 = Day start/end.
- I want the result to be the sum of all the expenses in the given year in the given month.