Excel教程 如何限制工龄工资核算年数的上线
时间:2023-03-16 07:29:19
如下图所示,公司规定,工龄薪酬为每年50元,20年封顶,即超越20年也依照20年核算,那么怎么依据职工入职日期核算工龄薪酬呢?
实例教程如下:
①下表所示,销售人员名字以及入职日期,规定是工龄工资每年50元,20年封顶,首先,我们在C2单元格输入: =MIN(20,DATEDIF(B2,TODAY(),"y"))*50 。
②回车,得到结果650,因为孙宁是2000年入职的,现在2013年,13年了,13*50=650,答案正确。
③双击单元格填充柄,完成下面单元格的计算。
公式说明
datedif(开始日期,结束日期,“Y”/“M”/“D”):计算开始日期和结束日期之间相距的年数或者月数天数。
先用datedif函数计算出工龄,如果工龄小于20,那么会返回这个小于20的值,如果大于20,min函数会返回20,最后再乘以50。
标签:Excel教程,如何限制工龄工资核算年数的上线
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word转换pdf文件方法图文教程
2023-11-13 14:00:34
![](https://img.aspxhome.com/file/2023/8/29238_0s.png)
Win10插入u盘没有反应怎么办?Win10插入u盘没有反应的解决方法
2023-06-06 09:38:41
![](https://img.aspxhome.com/file/2023/5/46375_0s.jpg)
怎样在Word中插入封面
2023-06-26 20:01:05
word中圆圈11怎么打?Word.Excel中圆圈11符号输入方法
2023-12-13 01:47:11
![](https://img.aspxhome.com/file/2023/2/21232_0s.jpg)
Word软件导入gif动图是静态的怎么办?Word软件gif动图动态显示教学
2022-09-06 21:20:12
![](https://img.aspxhome.com/file/2023/3/31113_0s.png)
word异形表格怎么制作
2023-11-12 14:04:51
![](https://img.aspxhome.com/file/2023/3/17263_0s.png)
word文档怎么换行
2022-05-08 18:26:45
![](https://img.aspxhome.com/file/2023/1/35831_0s.png)
游戏专用XP系统GHOST XP SP3极速优化版
2023-06-06 23:29:22
![](https://img.aspxhome.com/file/2023/0/53330_0s.jpg)
word表格前面怎么添加一个空白行?
2023-07-01 20:49:32
![](https://img.aspxhome.com/file/2023/2/27172_0s.jpg)
WORD常见问题之字体是歪的怎么办?
2022-07-20 21:00:57
![](https://img.aspxhome.com/file/2023/1/25211_0s.jpg)
设置QQ拼音为word2010/Excel2010默认输入法技巧
2023-12-01 18:34:12
![](https://img.aspxhome.com/file/2023/9/21889_0s.jpg)
用好Word的比较功能
2023-09-26 01:28:13
常见的word样式概述
2023-05-06 04:30:57
![](https://img.aspxhome.com/file/2023/0/35560_0s.png)
word2007中如何添加标题3
2023-12-06 18:47:49
![](https://img.aspxhome.com/file/2023/0/19230_0s.png)
word 如何建立自动编号的三级标题
2022-09-01 23:59:57
![](https://img.aspxhome.com/file/2023/9/32459_0s.png)
Word打不开,提示:是否使用“安全模式”启动
2022-06-28 04:29:39
![](https://img.aspxhome.com/file/2023/8/33638_0s.jpg)
Win10系统如何解除安全模式?Win10安全模式的解除方法
2023-11-13 06:51:05
![](https://img.aspxhome.com/file/2023/4/48894_0s.jpg)
word如何解除访问权限
2023-07-20 09:54:01
![](https://img.aspxhome.com/file/2023/4/34214_0s.png)
word2016文档中如何插入日期和时间
2023-11-14 10:48:00
![](https://img.aspxhome.com/file/2023/8/17698_0s.jpg)
Word掌握分栏技巧
2023-12-10 04:23:36
![](https://img.aspxhome.com/file/2023/5/20685_0s.png)