How to apply conditional formatting for only visible cells?

后端 未结 2 412
别跟我提以往
别跟我提以往 2021-01-29 02:30

I am using Excel-2010, I have applied 3scale conditional formatting for Excel range A1:F100, on a Dropdown macro hide/unhide will be actioned, and hide/unhide is not sequential,

2条回答
  •  星月不相逢
    2021-01-29 03:06

    There is a possibility with SUBTOTAL formulas for Minimum, Midpoint and Maximum.

    Minimum: Type = Formula, =SUBTOTAL(105,$A$1:$F$100)

    Midpoint: Type = Formula, =MEDIAN(IF((SUBTOTAL(103,INDIRECT("A"&ROW($1:$100)))>0)*($A$1:$F$100<>""),$A$1:$F$100))

    Maximum: Type = Formula, =SUBTOTAL(104,$A$1:$F$100)

    If you could accept the average of the values instead the 50% percentile as the Midpoint, the formula for Midpoint would be simpler:

    =SUBTOTAL(101,$A$1:$F$100)
    

    Greetings

    Axel

提交回复
热议问题