Automatically translated.View original post

Calendar that automatically colors holidays

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 → ✨

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[Excel tricks to color-code holidays automatically]

Calendar holidays, do not you change to red manually while looking at the purposely calendar?

That's just plain daily petit stress, isn't it 😭

People who work quickly make conditional formatting into a magical calendar that automatically changes colors ✨

Here is a procedure that becomes much easier once set 👇

① Create a holiday list on a separate sheet

Copy and prepare data from Cabinet Office HP

② Select a calendar and go to "Conditional Formatting"

Select by lowering the hurdle with hiragana

③ Open "New Rules"

Make sure where to click

④ Select the bottom and enter a function

Enter = COUNTIF (only 9 characters)

⑤ Enter the arguments

After selecting the date of the holiday in parentheses, type the forgettable comma (,) and select the "1st" in the calendar

⑥ Press the F4 key twice.

This fixes only the column (OK just by pressing twice without being aware of the dollar mark)

⑦ Choose your favorite color and complete

Completion of the calendar that changes the color of the holiday automatically if you choose your favorite color from "Format"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[🎁 Please let me hear your voice!]

Do you have petit stress such as "I want to make it easier here..." or "I'm worried about this" in your usual work?

If you let me know in the comments or DM, I will do my best to make a solution in a future post! Feel free to do it! ✨

# excel

6/18 Edited to

... Read moreここでは、投稿の手順にプラスして「つまずきやすい所」と「もっと便利にするコツ」を補足します。私も最初、祝日カレンダーをExcelで作ったのに祝日だけ手で塗っていて、更新のたびに漏れが出てました…。条件付き書式で自動化すると、予定入力に集中できてかなり快適でした。 まず大事なのは、別シートの祝日リストを“日付として認識させる”ことです。内閣府の「国民の祝日・休日」データをコピペすると、環境によっては文字列扱いになってCOUNTIFが反応しないことがあります。貼り付けた後に、セルの表示形式を「日付」にして、実際に=ISNUMBER(A2)などで数値扱いになっているか確認すると安心です(TRUEならOK)。 次に、条件付き書式の数式は「祝日リスト範囲」と「カレンダーの日付セル」の固定がポイントです。例としては、 =COUNTIF(祝日リスト!$A$2:$A$1068,B6)>0 のようにしておくと、カレンダー範囲(例:B$6:$D$36など)へ一気に適用してもズレにくいです。私がハマったのは、B6側まで$で全部固定してしまい、どのセルも同じ判定になったこと…。日付セルは“相対参照”が基本で、祝日リスト側だけを絶対参照にすると上手くいきました。 「土日も自動で色分けしたい」場合はルールを追加します。土曜は =WEEKDAY(B6,2)=6 日曜は =WEEKDAY(B6,2)=7 の条件付き書式を作り、祝日(赤など)のルールを一番上にして「停止する(優先)」系の設定が可能なら優先順位も調整すると、祝日が日曜に重なっても色が崩れにくいです。 最後に運用面。祝日リストは年ごとに更新があるので、私は祝日リストの最終行を多め($A$2000くらい)に取っておき、翌年分を追加しても設定を触らない運用にしています。これで「祝日カレンダー excel」で毎回作り直す手間が消えました。保存しておくと、本当に毎年ラクになります。