Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default Calculating pensions rate

Salary DOB Age Date Date of employment 7.5% 10%


Hi there I have the above headings (Columns a-g) what I need it to do is
when employees are over 41 their pension increases to 10% rather than 7.5% so
what it needs to do is give a number in 7.5% for how long they've been in
employment and below 41 years old and how long they've been in employment and
41 and above.

Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculating pensions rate

=DATEDIF(E2,MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2) ),E2),"Y")

and

=DATEDIF(MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2)),E 2),TODAY(),"Y")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pasty" wrote in message
...
Salary DOB Age Date Date of employment 7.5% 10%


Hi there I have the above headings (Columns a-g) what I need it to do is
when employees are over 41 their pension increases to 10% rather than 7.5%
so
what it needs to do is give a number in 7.5% for how long they've been in
employment and below 41 years old and how long they've been in employment
and
41 and above.

Can anyone help?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default Calculating pensions rate

This is great thanks - just a quicky - is there anyway to make it calculate
each one to 2 decimal places - or is this not possible? (Forgot to mention
that bit sorry!)

"Bob Phillips" wrote:

=DATEDIF(E2,MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2) ),E2),"Y")

and

=DATEDIF(MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2)),E 2),TODAY(),"Y")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pasty" wrote in message
...
Salary DOB Age Date Date of employment 7.5% 10%


Hi there I have the above headings (Columns a-g) what I need it to do is
when employees are over 41 their pension increases to 10% rather than 7.5%
so
what it needs to do is give a number in 7.5% for how long they've been in
employment and below 41 years old and how long they've been in employment
and
41 and above.

Can anyone help?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculating pensions rate

That is tricky, as DATEDIF only works on complete years.

If you want year fractions, you will need to calculate it all oneself, which
means that we need a rule (because some years have 365 days, some have 366).
So do we divide the number of days by 365, 365.25 or what?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pasty" wrote in message
...
This is great thanks - just a quicky - is there anyway to make it
calculate
each one to 2 decimal places - or is this not possible? (Forgot to mention
that bit sorry!)

"Bob Phillips" wrote:

=DATEDIF(E2,MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2) ),E2),"Y")

and

=DATEDIF(MAX(DATE(YEAR(B2)+41,MONTH(B2),DAY(B2)),E 2),TODAY(),"Y")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Pasty" wrote in message
...
Salary DOB Age Date Date of employment 7.5% 10%


Hi there I have the above headings (Columns a-g) what I need it to do
is
when employees are over 41 their pension increases to 10% rather than
7.5%
so
what it needs to do is give a number in 7.5% for how long they've been
in
employment and below 41 years old and how long they've been in
employment
and
41 and above.

Can anyone help?






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Time * Rate Patty Excel Discussion (Misc queries) 3 January 26th 07 01:27 AM
Calculating an Implied Interest Rate SJT Excel Discussion (Misc queries) 0 September 6th 06 11:07 PM
Calculating rate based on age ranges HRLADY Excel Worksheet Functions 0 May 24th 06 10:08 PM
Calculating a bill using a graduated rate... Dave Smith Excel Worksheet Functions 7 May 22nd 05 10:06 PM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM


All times are GMT +1. The time now is 01:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"