Forum Discussion

STP470's avatar
STP470
Copper Contributor
Oct 01, 2024
Solved

SUMIFS on criteria range with leading zero in text

        A       B 1   '006       1 2   '06         2 3   '6           4 4 5   Total     =SUMIFS(B1:B3, A1:A3, "06")   The formula result of =SUMIFS(B1:B3, A1:A3, "06") is 7, while it should be...
  • SergeiBaklan's avatar
    Oct 01, 2024

    STP470 

    SOMEIFS functions converts texts which looks like numbers into the number. Thus resulting criteria is number 6.

    Trick is to add CHAR(173) or use SUMPRODUCT

    =SUMIFS(B1:B3, A1:A3, CHAR(173) & "06")

Resources