- 帖子
- 2848
- 主題
- 10
- 精華
- 0
- 積分
- 2903
- 點名
- 0
- 作業系統
- 〔略〕
- 軟體版本
- 〔略〕
- 閱讀權限
- 100
- 性別
- 男
- 來自
- 〔略〕
- 註冊時間
- 2013-5-13
- 最後登錄
- 2026-7-25
|
5#
發表於 2019-12-8 10:26
| 只看該作者
With Range("BB17:BK80")
.Select
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=MMULT(1,MIN(OFFSET(BB$16,ROW($1:$10)*7-7,))/($BA17=""最小"")/(BB16<5))=BB16"
.FormatConditions(1).Font.ColorIndex = 3
.FormatConditions(1).Interior.ColorIndex = 40
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=MMULT(1,MIN(OFFSET(BB$16,ROW($1:$10)*7-7,))/($BA17=""最小""))=BB16"
.FormatConditions(2).Font.ColorIndex = 10
.FormatConditions(2).Interior.ColorIndex = 40
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=($BA17=""最小"")*(BB16<10)"
.FormatConditions(3).Font.ColorIndex = 10
End With
應該是陣列公式的問題, 必須手動再確定,
改成一般公式~~
======================== |
|