heretolearnexcel
Board Regular
- Joined
- Jan 22, 2019
- Messages
- 58
- Office Version
-
- 365
- Platform
-
- Windows
I have the following formula in cell H4: =UNIQUE((EOMONTH(UNIQUE(LET(Return,OFFSET('Expenses Tracking'!$A$2,,,COUNTA('Expenses Tracking'!$A:$A)-1),FILTER(Return,Return>=DATE(2021,9,1)))),-1)+1)) . It returns a range of dates that meet certain conditions.
And another formula in a dynamic named range: =OFFSET('Summary Report'!$L$4,0,0,COUNTA('Summary Report'!$L:$L)-1) The L column is a range of values.
Both of the formulas are inside a SUMIFS function in cell S4: =SUMIFS(Dynamic_Net_Income,H4#,">="&DATE(R4,1,1),H4#,"<="&DATE(R4,12,31)) but it returns a #VALUE! error.
I checked the ranges of both the UNIQUE/FILTER and the OFFSET formulas, to see if maybe the error in the SUMIFS function was caused because of ranges of different sizes in each formula, since I noticed that the OFFSET formula had one more value at the end which was empty; but I modified the formula so that it omitted such value and the range was the same size as the UNIQUE/FILTER formula, and the #VALUE! error kept happening.
If I change the SUMIFS function to the following: =SUMIFS(L4:L8,H4#,">="&DATE(R4,1,1),H4#,"<="&DATE(R4,12,31)) it is now working, so I'm pretty sure the #VALUE! error I get in the original formula has to do with a mismatch in the ranges when I use the OFFSET and UNIQUE/FILTER formulas, but I'm not sure how to fix it.
I'd appreciate any help in figuring this out.
Thanks in advance.
And another formula in a dynamic named range: =OFFSET('Summary Report'!$L$4,0,0,COUNTA('Summary Report'!$L:$L)-1) The L column is a range of values.
Both of the formulas are inside a SUMIFS function in cell S4: =SUMIFS(Dynamic_Net_Income,H4#,">="&DATE(R4,1,1),H4#,"<="&DATE(R4,12,31)) but it returns a #VALUE! error.
I checked the ranges of both the UNIQUE/FILTER and the OFFSET formulas, to see if maybe the error in the SUMIFS function was caused because of ranges of different sizes in each formula, since I noticed that the OFFSET formula had one more value at the end which was empty; but I modified the formula so that it omitted such value and the range was the same size as the UNIQUE/FILTER formula, and the #VALUE! error kept happening.
If I change the SUMIFS function to the following: =SUMIFS(L4:L8,H4#,">="&DATE(R4,1,1),H4#,"<="&DATE(R4,12,31)) it is now working, so I'm pretty sure the #VALUE! error I get in the original formula has to do with a mismatch in the ranges when I use the OFFSET and UNIQUE/FILTER formulas, but I'm not sure how to fix it.
I'd appreciate any help in figuring this out.
Thanks in advance.