Forum Discussion
How to check if all cells in a non congruent range/list meet specific criteria. See below.
spinaz0070 I'm sure it's possible to come up with a more elegant solution than this. But as a pointer to you in terms of developing a formula that can work, you might try -- as I've done in the attached --with a smaller set of cells replicating the condition you're looking for. Then when you get something that works, you could extend it. BUT, see my concluding comment at the bottom.
Here are shown the three formulas I've used that work for just three cells with disparate values. These could be combined into one that just checks to make sure each produces the full count showing that all satisfy your "PASS" criteria.
However, I wonder whether you couldn't redesign your sheet so that the values being checked ARE contiguous.....that would make more sense, in the long run. Even if there's some other process in the cells in the midst of these, you could have these crucial cells for the Pass/Fail in a different location, as a single range.
I thought about using a similar formula (e.g. IF(AND(C17>225,C19>225,...C17<384,C19<384,...),"PASS", "FAIL"), but I don't want to do this due to the number of cells (39).
I wish Microsoft would allow for non-congruent cells in their formulas, as I can't make mine congruent.
Appreciate your response!
- mathetesJan 26, 2024Gold Contributor
I wish Microsoft would allow for non-congruent cells in their formulas, as I can't make mine congruent.
But you can create a range elsewhere (we refer to such things as "helper columns") that takes all the values in those odd numbered cells and puts them into a single continuous array.