Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Pension computation


Hi, i have 2 categories of conditions to fufil in order to compute pension
contribution. One is age and the other is the salary.

for e.g. let x=age and y=salary & "< is less than" & " is more than" & "<=
is less than or equal to" & "= is more than or equal to"

Below is an e.g. of 2 ranges of Age and 1 range of salary
if (X <= 35) AND (Y <= 50), contribution will be 0
if (X <= 35) AND (50 <= Y < 500), contribution will be 1.25 of Y

if (35 < X <=50) AND (Y <= 50), contribution will be 0
if (35 < X <=50) AND (50 <= Y < 500), contribution will be 0 of Y

The problem now is that i have 6 ranges of Age and 6 ranges of Salary, how
do i do it? I was thinking of using =IF() but i do not know how to stack so
many range of these 2 categories AGE and Salary.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Pension computation


use the SELECT .... END SELECT method ....much easier to use and clearer
than a series of IF statements

SELECT CASE TRUE
CASE (X <= 35) AND (Y <= 50)
'do something
CASE (X <= 35) AND (50 <= Y ) AND ( Y < 500)
'do something
....etc etc

CASE ELSE
'no fit ... do something

END SELECT



"owen.cxy" wrote in message
...
Hi, i have 2 categories of conditions to fufil in order to compute pension
contribution. One is age and the other is the salary.

for e.g. let x=age and y=salary & "< is less than" & " is more than" &
"<=
is less than or equal to" & "= is more than or equal to"

Below is an e.g. of 2 ranges of Age and 1 range of salary
if (X <= 35) AND (Y <= 50), contribution will be 0
if (X <= 35) AND (50 <= Y < 500), contribution will be 1.25 of Y

if (35 < X <=50) AND (Y <= 50), contribution will be 0
if (35 < X <=50) AND (50 <= Y < 500), contribution will be 0 of Y

The problem now is that i have 6 ranges of Age and 6 ranges of Salary, how
do i do it? I was thinking of using =IF() but i do not know how to stack
so
many range of these 2 categories AGE and Salary.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Pension computation


but i'm using ms excel, how do i use that function? do you have a full e.g.
of how i can do it?

"Patrick Molloy" wrote:

Community Message Not Available

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
Pension Calculations Mark Wallis Excel Discussion (Misc queries) 1 July 26th 09 11:27 PM
Salary and Pension Increases tartan tim Excel Discussion (Misc queries) 5 October 9th 07 03:10 PM
12ths denominators for fractions in Excel (for pension calcs) pipey king Excel Worksheet Functions 1 August 25th 06 05:13 PM
formula for a pension barbarat Excel Worksheet Functions 22 December 10th 05 01:18 PM
How to calculate pension contribution on salary? pgruening Excel Discussion (Misc queries) 4 September 7th 05 09:28 PM


All times are GMT +1. The time now is 05:56 PM.

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

About Us

"It's about Microsoft Excel"