跳到主要内容

如何从Google表格中的出生日期算起年龄?

您是否曾经尝试过从Google表格中的出生日期算起年龄? 本文中,我将为您介绍一些公式,以帮助您快速轻松地完成这项工作。

使用Google表格中的公式根据日期的出生日期计算年龄

使用Microsoft Excel中的便捷功能根据日期的生日计算年龄


使用Google表格中的公式根据日期的出生日期计算年龄

以下公式可以帮助您从出生日期算起年龄。 请这样做:

1。 将以下公式输入到一个空白单元格中,该单元格将放置年龄结果,然后向下拖动填充手柄以从相对单元格中获得年龄,所有年龄都已被立即计算,请参见屏幕截图:

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

Tips:如果要获取出生日期的确切年,月和日,请使用以下公式,您将根据需要获得以下结果。

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


使用Microsoft Excel中的便捷功能根据日期的生日计算年龄

要从Microsoft Excel中的生日计算年龄, Kutools for Excel's 日期和时间助手 实用程序可以帮您一个忙,通过此功能,您可以根据当前日期和特定日期的出生日期来计算年龄。

请注意:要应用 日期及时间 帮手 功能,首先,您应该下载 Kutools for Excel,然后快速轻松地应用这些功能。

安装后 Kutools for Excel,请这样做:

1。 单击要在其中输出结果的单元格,然后单击 库工具 > 公式助手 > 日期和时间助手,请参见屏幕截图:

2。 在 日期和时间助手 对话框,请执行以下操作:

  • 选择 年龄 选项从 Type 部分;
  • 来自 出生日期 部分中,选择包含要计算年龄的出生日期的单元格;
  • 然后,选择 的旅程 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 Tab 为 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