I am trying to get a count of something less than an amount I'd like to be able to vary. When I 'hard-number' the threshold, the formula works, like this: =COUNTIF(D25:M25,"<-200")
However, I cannot get the formula to work when I use a cell reference [Cell L1] to specify the criteria. The following iterations all give the answer 0, even though one of the values in the row is -201:
=COUNTIFS(D25:M25,"<L1")
=COUNTIFS(D25:M25,"=<L1")
=COUNTIFS(D25:M25,"=<L1")
If I try to leave off the quotes:
=COUNTIFS(D25:M25,<L1)
=COUNTIFS(D25:M25,=<L1)
=COUNTIFS(D25:M25,<=L1)
I get the error message "There's a problem with this formula. Not trying to type a formula? When...."
It would be far more elegant not to have to edit the cell each time I want to try to change the threshold. I'm sure there's a simple fix, and it is just the layers of rust from not using this formula, but I'd appreciate any assistance on this one.
Jasman922
Bookmarks