Forum Discussion

maks_braver's avatar
maks_braver
Copper Contributor
Nov 21, 2023

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

    • maks_braver's avatar
      maks_braver
      Copper Contributor
      SergeiBaklan 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 😞
      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        maks_braver 

        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?

         

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    maks_braver 

    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.

      • NikolinoDE's avatar
        NikolinoDE
        Gold Contributor

        maks_braver 

        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.

    • maks_braver's avatar
      maks_braver
      Copper Contributor
      It's late here, I meant Sum, and the thing is not in TRUE;0 issue. Thanks for useless help 🙂

Resources