Forum Discussion

Per's avatar
Per
Copper Contributor
Jan 23, 2025
Solved

Sorting numbers

Hi, I have a excel sheet with x number of columns. I have formated the rows so that if there is a specific number it is marked in red. See picture below. The numbers that are marked are Top row ...
  • djclements's avatar
    djclements
    Jan 24, 2025

    The formula needs to match the logic used in your Conditional Formatting rules. Based on your screenshots, I believe you meant to say the rule for the Top Row is "0 - 2 and 9 - 13. So, numbers 3-8 shall not be marked".

    Also, I think the logic just needs to be reversed from what's already been suggested. Try either:

    =SUM(N(NOT(BYCOL((A1:AI3<{3;1;2})+(A1:AI3>{8;5;6}),OR))))

    Or:

    =SUM(BYCOL((A1:AI3>{2;0;1})*(A1:AI3<{9;6;7}),PRODUCT))

    See attached...

Resources