Calendar that can be automatically colored on Saturdays and Sundays
@ひろ|Excel-時短テク← Click here for other computer time saving techniques
How was this post? 💡
If you think "This is convenient!," please save it so that you can look back later 📌
- - - - - - - - - - - - -
I didn't know 🔥
I knew 👍
I set it up → ✨
- - - - - - - - - - - - -
[Automatic color coding in an instant! How to make a Saturday and Sunday calendar 💻]
On the Saturday and Sunday lines of the monthly calendar,
Are you coloring one by one by hand?
That's just plain daily petit stress, isn't it 😭
People who work quickly can quickly set the back of conditional formatting,
Even if the moon changes, it is an ideal state that is automatically color-coded in an instant ✨
Here is a procedure that becomes much easier once set 👇
① Range selection
First, select the entire data!
② Function selection
From "Conditional Format"
↓
Select "New Rule"
③ Rule selection
Click on the bottom (use a formula to determine which cell to format)
④ Saturday's formula
Enter "= WEEKDAY ($mark before B in date cell, 2) = 6" in the formula input field
⑤ Color setting
Select your favorite color (such as blue) from the format
↓
This will automatically color on Saturday!
⑥ Sunday setting
Same procedure on Sunday, set the color (such as red) with "= 7" at the end of the formula
↓
With this, both Saturdays and Sundays will be automatically colored!
- - - - - - - - - - - -
Let's graduate from monthly manual coloring today!
In this account, Excel and personal computer work is "without hesitation, stop" I am sending a time-saving trick to be easier 💻
People who want to reduce overtime work today, please take a look at other posts 😁
私がつまずきやすかったのが、「カレンダーは作れたのに、月が変わると色付けがズレる」問題でした。結論、ポイントは“条件付き書式の数式で参照セルを固定しすぎないこと”と、“WEEKDAYの戻り値の種類を揃えること”です。 ■土日を自動色付けする基本(WEEKDAY) 条件付き書式 → 新しいルール →「数式を使用して、書式設定するセルを決定」で、土曜・日曜を別ルールにします。 - 土曜(青など):=WEEKDAY($B7,2)=6 - 日曜(赤など):=WEEKDAY($B7,2)=7 ここで「,2」を指定すると、月=1〜日=7の並びになるので、土曜が6・日曜が7で分かりやすいです(私は最初ここを指定せず、数字が合わなくて混乱しました)。 ■“$”の付け方で結果が変わる(超重要) 例えば日付がB列に入っていて、色付けしたい範囲がB7:H37のように横に広い場合、参照は「列だけ固定」がおすすめです。 - OK例:$B7(列Bは固定、行は相対) - 失敗しやすい例:$B$7(行まで固定すると、どのセルもB7だけを見に行ってしまい色が崩れます) ■「曜日列」も自動で色を付けたいとき 「曜日」列(例:C列に“月”“火”…を表示)も同じ考え方でOKです。曜日列のセル自体ではなく、“その行の日付セル”を見にいく数式にします。 例:曜日列C7:C37を色付けしたいなら、数式は =WEEKDAY($B7,2)=6 / =7 のままで大丈夫でした。 ■月が切り替わるカレンダー(DATE)と相性が良い 画像内にもあるような =DATE(年セル,月セル,1) のように日付を作っているカレンダーだと、日付が更新されるたびに条件付き書式も追従してくれます。私は「日付を手入力」→「DATEで自動生成」に変えたら、運用が一気にラクになりました。 ■うまく色が付かないときのチェック - 日付セルが“文字列”になっていないか(表示は日付でも中身が文字だとWEEKDAYが不安定なことがあります) - 条件付き書式の「適用先」範囲が意図通りか - ルールの順序(同じセルに複数ルールが当たって上書きされていないか) 一度この形にしておくと、月が変わっても土日が勝手に色分けされるので、地味な塗り作業から解放されました。カレンダーだけじゃなく、勤怠表やシフト表にもそのまま使えるのでおすすめです。
























































































