Forum Discussion

J_Uys123's avatar
J_Uys123
Copper Contributor
Aug 13, 2019
Solved

Excel COUNTIF function not counting correctly

I've been using a sheet for a long time. Suddenly today, a simple COUNTIF function doesn't work any more. The formula is as simple as they get: =COUNTIF(AC23:SZ23,"L"). There are numerous 'L's in the...
  • Twifoo's avatar
    Aug 13, 2019
    There might be L’s with leading and trailing spaces. Try this:
    =SUMPRODUCT(—(TRIM(AC23:SZ23)=“L”))

Resources