ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   calculate years worked by 3% * salary in excel (https://www.excelbanter.com/excel-worksheet-functions/65713-calculate-years-worked-3%25-%2A-salary-excel.html)

laurentium3

calculate years worked by 3% * salary in excel
 
If the number of years employed is greater than or equal to 1, then the
contribution is equal to the contribution percentage (3%) * $50,000;
otherwise, the contribution is $0.

Gary L Brown

calculate years worked by 3% * salary in excel
 
=IF(INT(YEARFRAC(starting date,current date))=1,50000*0.03,0)

HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"laurentium3" wrote:

If the number of years employed is greater than or equal to 1, then the
contribution is equal to the contribution percentage (3%) * $50,000;
otherwise, the contribution is $0.


[email protected]

calculate years worked by 3% * salary in excel
 
"laurentium3" wrote:
If the number of years employed is greater than or equal
to 1, then the contribution is equal to the contribution
percentage (3%) * $50,000; otherwise, the contribution is $0.


Do you really mean "3% * salary up to 3% * $50,000"?

That seems more consistent with the subject of your posting.
If that is what you mean, then building upon Gary Brown's reply:

=IF(YEARFRAC(hireDate, criterionDate) < 1, 0, 3%*MIN(salary, 50000))

You can use TODAY() in place of criterionDate. But that usually
does fit the HR requirements.


All times are GMT +1. The time now is 11:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com