or since 99 is the highest value in your list (from previous thread), you could just modulo all values in the max array by 99, which would reduce any such entry to being 0, and thus not the max.
Note that this only works because 99 is the highest value.
Only problem with that is you can no longer tell the difference between 0 and 99. So if you values are 0, 0, 0, 1, 99, you have 0, 0, 0, 1, 0. You may include the 99 result even though now it is rated as 0.
It doesn’t have to be 99, I am using a 24 hour clock for hours available each day and have set 99 as a closed day, but need to exclude this number as it will always show as the highest