Forum Discussion
SUMIFS date range general mistake
Good morning,
In my excel I'm trying to sum data by date range:
=SUMIFS($H$2:$H$300;$E$2:$E$300;">"&M2;$E$2:$E$300;"<"&M3)
And get "You have mistake in your formula" with the whole line highlited!
The E range and M2, M3 cells are Date.
Besides SUMIF - works perfectly with the same syntaxis:
=SUMIF($E$2:$E$300;">"&M2;$H$2:$H$300)
The question - Why? SOLVED! Some kind of a bug. After reboot it works.
11 Replies
- SergeiBaklanDiamond Contributor
Such mistake means something is wrong with syntax.
In general nothing is wrong with the formula
- maks_braverCopper ContributorSergeiBaklan thats what i'm saying. Thanks. I use sumifs all the time and it works properly, but somehow does not want to recognise ">"& construction and sugests it as a mistake. Thus sumif is ok with it 😞
- SergeiBaklanDiamond Contributor
Have no idea what it could be, especially if is formula works after the reboot. As workaround you may use
=SUMPRODUCT( $H$2:$H$300*($E$2:$E$300 > M2)*($E$2:$E$300 < M3) )
By the way, if change criteria places
=SUMIFS($H$2:$H$300, $E$2:$E$300,"<" & M3, $E$2:$E$300, ">" & M2)
it also gives an error?
- NikolinoDEGold Contributor
The formula should have commas instead of semicolons, and the ranges and criteria should be properly paired.
=SUMIFS($H$2:$H$300, $E$2:$E$300, ">"&M2, $E$2:$E$300, "<"&M3)
Hope this will help you.
- maks_braverCopper Contributor
NikolinoDE thanks, but coma thing is regional isuue, we use ";" instead.
- NikolinoDEGold Contributor
If you are still encountering issues, there might be a problem with the date format or some other regional setting affecting the formula.
Ensure that the date format in cells M2 and M3 matches the date format in the range $E$2:$E$300.
If there are discrepancies, Excel may have trouble interpreting the date criteria.
Also, make sure that the cell references and data in the specified ranges are accurate and free from any extra spaces or characters that might cause issues.
- Detlef_LewinSilver Contributor
- maks_braverCopper ContributorIt's late here, I meant Sum, and the thing is not in TRUE;0 issue. Thanks for useless help 🙂