Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のルールで条件付き書式を設定したい:
列 B のセルが紫色の場合、日付を含む列 A に次のルールを適用します。
=TODAY()-A1>1<31 - カラー ピンク =TODAY()-A1>30<61- カラー グリーン
=TODAY()-A1>1<31
=TODAY()-A1>30<61
あなたはポイントを得る
ただし、列 B のセルの内容が青色の場合、列 A のセルも青色にしたいと考えています。自分の式が正しいかどうかさえわからないところまで来ています。ありがとう
このためのオプションは、VBA ルートを使用することです。これにより、「条件付き書式」がセルに適用されます。例えば:
For A_row = 1 To 100 If Range(A_row, "B").Interior.ColorIndex = my_color_index Then Range(A_row, "A").NumberFormat = my_custom_format 'add desired custom number formats here End If Next