+ Reply to Thread
Results 1 to 11 of 11

Calculating Monthly Premium rates base on age

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Calculating Monthly Premium rates base on age

    Attached is sheet that I want to use to calculate monthly premium rates based on applicants age over 1,3,4,5, and 10 year terms (see "Assurant" tab). I have figured out how to calculate for one age group (i.e. 51-60) using the IF statement, but don't know how to add a multi-string to accomidate all the other age groups. Can I do this with IF or is there anouther formula I should be using?
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,686

    Re: Calculating Monthly Premium rates base on age

    Here is a link on how to do nested IF statements.

    http://www.techonthenet.com/excel/macros/if_custom.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating Monthly Premium rates base on age

    Thanks for your reply Alan. I have tried different combination of brackets and formating but always come up with errors.

    Below is an example of the IF statements I'm trying to nest:

    =IF(AND(E2>0,E2<=40),A8*D15)
    =IF(AND(E2>=41,E2<=50),A8*D16)
    =IF(AND(E2>=51,E2<=60),A8*D17)
    =IF(AND(E2>=61,E2<=70),A8*D18)
    =IF(AND(E2>=71,E2<=75),A8*D19)
    =IF(AND(E2>=76,E2<=80),A8*D20)
    =IF(AND(E2>=81,E2<=85),A8*D21)
    =IF(AND(E2>=86,E2<=99),NA

  4. #4
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Calculating Monthly Premium rates base on age

    Hi,

    I have a solution that I was able to put into your spreadsheet.

    It is a little crude but it will work. What I did was chain multiple IF statements toghether in order to find the correct column and row to preform the calculations. It looks something like this.

     =IF(AND($E$2>0,$E$2<=40),C15*$A$8,IF(AND($E$2>40,$E$2<=50),C16*$A$8,""))))
    The AND function allows you to add multiple arguments like if number or "age" in cell E2 is greater than 0 and less than or equal to 40 then select cell C15 and multiply it to cell A8. The same is true for all of the age groups as you will be able to see when you view the workbook.

    I hope this helps!


    Simeon

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating Monthly Premium rates base on age

    Thanks Simeon!

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,686

    Re: Calculating Monthly Premium rates base on age

    I redid your sheet using a series of Vlookups. Look at it.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Calculating Monthly Premium rates base on age

    Quote Originally Posted by alansidman View Post
    I redid your sheet using a series of Vlookups. Look at it.
    I was going to use VLOOKUP at first but for some reason I had a brain fart and forgot to make a refrence table for the age groups. I can be dumb at times...

    That's why you are the Guru!
    Thanks!


    Simeon

  8. #8
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating Monthly Premium rates base on age

    Thanks Alan!

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Calculating Monthly Premium rates base on age

    The syntax for nested IFs would be like this

    =IF(AND(E2>0,E2<=40),A8*D15,IF(AND(E2>=41,E2<=50),A8*D16,IF(AND(E2>=51,E2<=60),A8*D17,IF(AND(E2>=61,E2<=70),A8*D18,IF(AND(E2>=71,E2<=75),A8*D19,IF(AND(E2>=76,E2<=80),A8*D20,IF(AND(E2>=81,E2<=85),A8*D21,"NA")))))))

    ....but you could do the same more simply with INDEX/MATCH, something like this

    =IF(OR(E2=0,E2>85),"NA",INDEX(D15:D21,MATCH(E2,{1,41,51,61,71,76,81}))*A8)
    Audere est facere

  10. #10
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Thumbs up Re: Calculating Monthly Premium rates base on age

    Thanks All for your help! The calculation now works!! Cheers, Rick

  11. #11
    Registered User
    Join Date
    11-07-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating Monthly Premium rates base on age

    Thanks Audere!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1