跳到主要內容

如何從Google表格中的出生日期算起年齡?

您是否曾經嘗試過從Google表格中的出生日期算起年齡? 本文中,我將為您介紹一些公式,以幫助您快速輕鬆地完成這項工作。

使用Google表格中的公式根據日期的出生日期計算年齡

使用Microsoft Excel中的便捷功能根據日期的生日計算年齡


使用Google表格中的公式根據日期的出生日期計算年齡

以下公式可以幫助您從出生日期算起年齡。 請這樣做:

1。 將以下公式輸入到空白單元格中,該單元格將放置年齡結果,然後向下拖動填充手柄以從相對單元格中獲得年齡,所有年齡均已一次性計算,請參見屏幕截圖:

=IF(B2,DATEDIF(B2,TODAY(),"Y"),"")

保養竅門:如果要獲取出生日期的確切年,月和日,請使用以下公式,您將根據需要獲得以下結果。

=datedif(B2, today(), "Y") & " years, " & datedif(B2, today(), "YM") & " months, " & datedif(B2, today(), "MD") & " days"


使用Microsoft Excel中的便捷功能根據日期的生日計算年齡

要從Microsoft Excel中的生日計算年齡, Excel的Kutools's 日期和時間助手 實用程序可以幫您一個忙,通過此功能,您可以根據當前日期和特定日期的出生日期來計算年齡。

注意:要應用 日期及時間 幫手 功能,首先,您應該下載 Excel的Kutools,然後快速輕鬆地應用這些功能。

安裝後 Excel的Kutools,請這樣做:

1。 單擊要在其中輸出結果的單元格,然後單擊 庫工具 > 公式助手 > 日期和時間助手,請參見屏幕截圖:

2。 在 日期和時間助手 對話框,請執行以下操作:

  • 選擇 年齡 選項從 類別 部分;
  • 出生日期 部分中,選擇包含要計算年齡的出生日期的單元格;
  • 然後,選擇 今天 or 指定日期 您要基於哪個日期進行計算;
  • 最後,根據需要指定輸出結果類型。

Doc Google Sheet獲得年齡04

3。 然後點擊 Ok 按鈕,已計算出第一個年齡,然後選擇該單元格並向下拖動填充手柄以從其他日期單元格獲取年齡,請參見屏幕截圖:

單擊立即下載並免費試用Kutools for Excel!


更多相關文章:

  • 計算特定或未來日期的年齡
  • 例如,您有一個人的出生日期,如果您需要根據將來的日期或特定的日期計算該人的年齡,以下方法將幫助您實現這一目標。
  • 從Excel中的ID號計算年齡
  • 假設您有一個ID號碼列表,其中包含13位數字,而前6個數字是出生日期。 例如,ID號9808020181286表示生日是1998/08/02。 您如何從ID號中獲取年齡,如以下在Excel中快速顯示的屏幕截圖所示?
  • 計算兩個日期之間的差異
  • 處理工作表中的日期時,您可能需要計算兩個給定日期之間的差,以獲取天數,週數,月數或年數。 本文,我將討論如何在Excel中解決此任務。
  • 計算一個人的下一個生日
  • 通常,我們可以根據出生日期的公式來計算一個人的年齡,但是,您是否考慮過用Excel計算下一個生日的年齡? 這意味著要計算他下個生日幾歲。 本文中,我將討論一些解決Excel中此任務的公式。

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks
this is what i was looking for
This comment was minimized by the moderator on the site
Tem um erro nas fórmulas, a sintaxe correta é com ponto e vírgula, as planilhas do Google não aceita somente a vírgula! Quando troquei a vírgula pelo ponto e vírgula, funcionou corretamente
This comment was minimized by the moderator on the site
Hello Juscelino,

Thanks for your comment. You are right. In Portugal and Spain, we should change the comma to the semicolon so the formula can work. The formulas in the article are more for universal usage. And we did not consider the special cases, like yours. Thanks for pointing that out. Have a great day.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Hej !

Tak for et godt site.

Hvordan bregner jeg om en person / dato har fødselsdag, og viser det i en celle med fx en QUERY syntax ?

Jeg har en række med datoer, og øsnker på et dashoard, at der kommer navne frem vis en dato rammer den aktuelle dato vi har :)

HOW TO DO :) ?
/Henrik
This comment was minimized by the moderator on the site
Its not working on google sheets now.
This comment was minimized by the moderator on the site
Hi, AOS,
The formulas in this article works well in Google Sheet, can you give your problem here?
Thank you!
This comment was minimized by the moderator on the site
Thank you this is exactly what I needed!!
This comment was minimized by the moderator on the site
exactly what I needed, thx
This comment was minimized by the moderator on the site
Awesome. Is it possible to set TODAY to a future date so you know their age on a specific date?
This comment was minimized by the moderator on the site
Or use this formula to get the age of the years, months and days:
=datedif(A2, B2, "Y") & " years, " & datedif(A2, B2, "YM") & " months, " & datedif(A2, B2, "MD") & " days"
This comment was minimized by the moderator on the site
Hello, Terry,
To calculate the age from a specific future date, you can apply the following formula:

=IF(A2,DATEDIF(A2,B2,"Y"),"")

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
This is great! Thanks!
This comment was minimized by the moderator on the site
Excellent! Tks
This comment was minimized by the moderator on the site
Great thanks!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations