I'm very curious how you did it.
I have no way to get your result by Sumif.
If I copy your XL2BB into a blank worksheet (or if I type 1-13 into a cell) my version of Excel interprets this as the date 1 January 2013, i.e. the number 41275.
Similarly, my Excel interprets 13-1 as 13 January in the current year, 2024, i.e. the number 45304.
That's why my SUMIF returns the value 1. It looks like the same for
@Phuoc.
We don't actually know what's in your cells (unless your workbook contains no private of sensitive information and you are happy to post a link here, so that we can take a look).
But you can look in more detail at what's really in A2:A4 and D2. For example, In another cell, you could test: =A2="1-13" to see if you really do have a
text value in A2.
I guess that they are transformed as 13 Jan 2024 by Sumif automatically.
No, SUMIF isn't transforming anything.
Either the values are identical, or there is some other reason why the calculation isn't updating correctly, e.g. because Calculation is set to manual, or the worksheet contains circular references.