fbpx

如何製作Notion 年、月、日進度列條? 快速掌控自己的人生進度!

by 牧羊妮
4.6K views

如果你跟我一樣,常常不知道現在過到幾號,或是今天是星期幾 (這絕對不是健忘! 而是因為我們把注意力用在其他更重要的事情上 😂),那便很需要一個進度列條,提醒我們目前還剩多少時間。

 

若將此進度列條與自己的目標進度做比對,便可快速地知道,我們現在是需要更努力地追進度,還是已經達標,可以悠哉地放個小假!

 

今天,想跟大家分享,我如何用Notion公式寫出年、月、日的進度列條,快速掌控自己剩餘的時間與進度!

你會學到: (可快速點選連結)

此篇是Notion進度列條公式的進階應用,若你還沒有基本的公式概念的話,建議可以先參考此篇文章: 如何製作NOTION進度列條? 3種風格任你挑!

Notion教學-年、月、日進度列條

 

 

一、Notion公式: 「年」進度列條

 

公式: 

if(year(now()) % 4 == 0, slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "DDD")) / 366) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "DDD")) / 366) + " " + format(floor(100 * toNumber(formatDate(now(), "DDD")) / 366)) + "%", slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "DDD")) / 365) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "DDD")) / 365) + " " + format(floor(100 * toNumber(formatDate(now(), "DDD")) / 365)) + "%")

 

公式基本概念說明

  1. 每月進度 = 今天為今年的第幾天 / 今年的總天數
  2. 一年的總天數共有2種可能
    1. 若為閏年,則一年共有366天
    2. 若非閏年,則一年共有365天

 

公式解析

1. 判斷今天是否為閏年, 若為閏年,一年天數以366天計算,若不為閏年,則一年天數以365天計算

if(year(now()) % 4 == 0

 

2. 在閏年的情況下,計算今天為今年的第幾天,並換算成年度百分比

slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "DDD")) / 366) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "DDD")) / 366) + " " + format(floor(100 * toNumber(formatDate(now(), "DDD")) / 366))

👉 slice(“▓▓▓▓▓▓▓▓▓▓”, 0, 10 * toNumber(formatDate(now(), “DDD”)) / 366)

  • 意義: 每10%就取一格
  • toNumber(formatDate(now(), “DDD”): 計算今日為今年的第幾天,並轉呈數字格式

👉 slice(“░░░░░░░░░░”, 10 * toNumber(formatDate(now(), “DDD”)) / 366)

  • 總進度列條共有10格,用 ░ 來補足 ▓ 後面不足10的格數

👉 ” ” +format(floor(100 * toNumber(formatDate(now(), “DDD”)) / 366)) + “%”

  • ” ” +: 在進度條 與 百分比數字間,加上一個空白
  • floor ( ): 無條件捨去 進度百分比
  • format(floor)+ “%”: 將上一步算完的進度百分比轉成文字,並在後方加上”%”。

 

3. 在今年非閏年的情況下,計算今天為今年的第幾天,並換算成百分比 。計算邏輯同閏年情境(公式解析2),僅差在總天數: 閏年為366天,非閏年為365天

slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "DDD")) / 365) +
slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "DDD")) / 365) +
" " + format(floor(100 * toNumber(formatDate(now(), "DDD")) / 365)) + "%")

 

 

二、Notion公式: 「月」進度列條

 

公式:

if(year(now()) % 4 == 0 and month(now()) == 1, slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 29) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 29) + " " + format(floor(100 * toNumber(formatDate(now(), "D")) / 29)) + "%", if(month(now()) == 1, slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 28) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 28) + " " + format(floor(100 * toNumber(formatDate(now(), "D")) / 28)) + "%", if(month(now()) == 0 or month(now()) == 2 or month(now()) == 4 or month(now()) == 6 or month(now()) == 7 or month(now()) == 9 or month(now()) == 11, slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 31) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 31) + " " + format(floor(100 * toNumber(formatDate(now(), "D")) / 31)) + "%", if(month(now()) == 3 or month(now()) == 5 or month(now()) == 8 or month(now()) == 10, slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 30) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 30) + " " + format(floor(100 * toNumber(formatDate(now(), "D")) / 30)) + "%", ""))))

 

公式基本概念說明

  1. 每月進度 = 今天日期 / 該月總天數
  2. 每個月份的總天數不同,因此在公式中會分成4大類型來計算
    1. 閏年 & 2月: 29天
    2. 非閏年 & 2月: 28天
    3. 大月: 31天
    4. 小月: 30天

 

公式解析

1. 若今年為閏年,且現在為2月,則在計算月進度時,該月總天數以29天為分母來計算

 if(year(now()) % 4 == 0 and month(now()) == 1
  • 今年為閏年,且現在為2月
  • month( ) = 0,為1月;month( ) = 1,為2月….依此列推;month( ) = 11,為12月

👉 計算今天為該月的第幾天,並換算成百分比 。

slice("▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 29) + slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 29) + " " + format(floor(100 * toNumber(formatDate(now(), "D")) / 29)) + "%"

2. 若今年為非閏年,且現在為2月,則在計算月進度時,該月總天數以28天為分母來計算

if(month(now()) == 1, 
slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 28) +
slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 28) +
" " + format(floor(100 * toNumber(formatDate(now(), "D")) / 28)) + "%"

3. 若現在為1, 3, 5, 7, 8, 10, 12月,則在計算月進度時,該月總天數以31天為分母來計算

if(month(now()) == 0 or month(now()) == 2 or month(now()) == 4 or month(now()) == 6 or month(now()) == 7 or month(now()) == 9 or month(now()) == 11, 
slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 31) +
slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 31) +
" " + format(floor(100 * toNumber(formatDate(now(), "D")) / 31)) + "%"

4. 若現在為4, 6, 9, 11月,則在計算月進度時,該月總天數以30天為分母來計算

if(month(now()) == 3 or month(now()) == 5 or month(now()) == 8 or month(now()) == 10, 
slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * toNumber(formatDate(now(), "D")) / 30) +
slice("░░░░░░░░░░", 10 * toNumber(formatDate(now(), "D")) / 30) +
" " + format(floor(100 * toNumber(formatDate(now(), "D")) / 30)) + "%"

 

 

三、Notion公式: 「週」進度列條

 

1. 以星期日為該週的最後一天

if(day(now()) == 0, "▓▓▓▓▓▓▓▓▓▓ 100% ", slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * day(now()) / 7) + slice("░░░░░░░░░░", 10 * day(now()) / 7) + " " + format(floor(100 * day(now()) / 7)) + "%")

 

2. 以星期日為該週的第一天

if(day(now()) == 0, "▓░░░░░░░░░ 14% ", slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * (day(now())+1) / 7) + slice("░░░░░░░░░░", 10 * (day(now())+1) / 7) + " " + format(floor(100 * (day(now())+1) / 7)) + "%")

👉 此範例圖是以「星期日」當作週的「第一天」: 2021/4/18 (日)

Notion教學-年、月、日進度列條

 

 

四、Notion公式: 「日」進度列條,以小時計算

公式: 

slice("▓▓▓▓▓▓▓▓▓▓", 0, 10 * hour(now()) / 24) + slice("░░░░░░░░░░", 10 * hour(now()) / 24) + " " + format(floor(100 * hour(now()) / 24)) + "%"

 

👉 年、月、週、日 進度列條 Notion模板連結

 

 

五、Notion外掛小工具: 不用任何公式,就可以快速做出人生進度列條!

如果你能一路看到這裡還沒頭昏,真的很厲害!

偷偷跟你說,有個好用的Notion外掛小工具網站: https://indify.co/,不用寫公式,只要2步驟,就能輕鬆製作出Notion 年、月、日的進度列條!

 

步驟一: 進到 https://indify.co/,註冊登入後,選擇Life progress bar 小工具

Notion教學-indify life progress bar

 

步驟二、於左側編輯欄選擇想要呈現的內容,並複製最下方的連結貼到Notion頁面上,就大功告成囉!

Notion教學-indify life progress bar設定

在工作上,我喜歡用「月進度列條」來對比該月業績目標的達成率,知道何時該努力,何時可以放鬆。

 

而在人生夢想的追尋上,我喜歡用「年進度列條」來提醒自己,今年還剩多少時間,可以做有意義的事情,維持有意義的關係!

 

現在,就一起動動手,來試試看吧!

《重要資源連結》

 

You may also like

3 comments

Andrew 28 6 月, 2021 - 7:29 下午

您好~
這篇文章絕對會是【腦細胞殺手】,
能夠將【閏年】透過notion公式實作出來真是太厲害了!!!

去年剛開始接觸notion軟體時,因為介面是【英文版】,
再加上超多彈性的功能,讓我一時不知如何入門,一下就放棄了…

最近透過社群,有人大力推薦學notion可到您的Blog挖寶,
不僅一步步開始學會了notion操作,
最重要的是看了您的文章,我得到了很多人生啟發,馬上被圈粉了 ?
謝謝您分享許多寶貴知識,
期待您的每一篇文章 ?

ps. 您拆解公式寫文章時可能也頭昏腦脹了XD~~ 小月是 30天 (筆誤寫成…小月: 31天

Reply
牧羊妮 29 6 月, 2021 - 7:05 下午

Hi Andrew

真的超燒腦!
我寫完一次公式之後,都只會用複製貼上 哈哈

因為你的留言,我又好好回頭看了一次文章,實在是…..有夠難!
你能一路看到最後還幫我發現錯誤,真的好強 (立馬來改)! 以這樣的精神,你學Notion或是所有東西一定沒問題的 🙂

謝謝你的留言,對我來說真的是很棒的鼓勵。
知道自己文章能幫助到別人,真的很開心!

祝你的Notion越用越順手~
也再次謝謝你幫我糾錯

Reply
【Notion 教學全攻略】 最完整教學,讓你輕鬆入門快速進階! - 成長卡波 11 2 月, 2022 - 11:04 上午

[…] 想實現效果必須用到Notion formula的功能輸入一些公式,因此如果有興趣想研究的人可以看這篇文章的教學去研究看看囉~ […]

Reply

Leave a Comment

市面上含金量最高的ChatGPT課程! 好評熱銷!

ChatGPT 新時代工作力

結合牧羊妮擔任一線品牌AI顧問及共同創辦迪卡儂電商的經驗
打造超縝密&系統化的ChatGPT使用法

能幫助你應用於工作的各層面:
⫸ 無需任何技術背景,輕鬆掌握GPT的使用技巧
⫸ 獨創GPT溝通術,工作品質&效率提升10倍!
⫸ 全方位運用:職場攻略、行銷企劃、論文撰寫...…
⫸學會系統化模組寫法,讓你輕鬆上手,任何生成式AI都適用
⫸掌握ChatGPT-4最新進階功能,讓你始終走在時代前端
⫸擺脫AI焦慮,專注於高品質的工作成果