
我在電子表格中列出了即將發布的遊戲。我想在現場進行條件格式化Release Date
,以便如果遊戲在本月/本週發布,我可以應用不同的格式。但到目前為止,我能找到的只是設定檢查,例如today
、tomorrow
、yesterday
等。
這可能嗎?
答案1
關於「本週」有點含糊,所以我選擇了周數(這可能會在年底引起一些異常),但對於大多數目的,以下內容應該適用於新的 Google 表格:
其中兩個公式是:
=and(year(today())=year(A1),weeknum(A1)=weeknum(today()))
橙色(週)和黃色(月):
=and(year(today())=year(A1),month(A1)=month(today()))
其中假定相關日期位於 A 欄。