1
1
If I am using the sumif builtin function (Excel Microsoft Office Home & Student 2016 version 1708) I get the following behaviour:
amount description
4 '<Sydney
4 '<Melbourne
=sumif(b1:b3,"'<Sydney",a1:a3)
Sumif returns 8.
This is incorrect. The sumif should return 4.
Please note the use of the ' for string escaping when entering text into the cell.
Any ideas what I am doing wrong here?
Worth noting, the problem seems to be related to using the angle bracket (char(60)). I appreciate that I could get around this issue using the substitute() function - but I would like to understand what the cause of this problem is and how to tell excel to treat char(60) as a string.
Any ideas?
Please note - there are no issues with the sumif if only the hypen (char(45)) is used. E.g:
amount description
4 '-Sydney
4 '-Melbourne
=sumif(b1:b3,"'-Sydney",a1:a3)
This correctly sums to 4.
You Sir are a gentleman and a scholar! Thanks - this works. – Sean – 2017-09-28T10:03:39.060