+ Reply to Thread
Results 1 to 6 of 6

Help with Nested VLOOKUP function to calculate estimated annual insurance premium

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    13

    Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    Hey guys! I need help with nested VLOOKUP function to calculate estimated annual insurance premium based on the owner's region of residence,driving record, and residential status in cell F12.(Hint: Include an intermediate calculation in the form that looks up the region number associated with the state of residence, and then refer to the cell that contains this result in the insurance formula.)

    Please help!!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    Provide one or two COMPLETE examples of what the answers should be and explain your answers if they aren't obvious.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-25-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    well it should look something like this with the vlookups nested in IF(ISBLANK(Cell),”",A-B+C+D-E) where A is the Base Cost, B is the Deduction for Excellent Driver, C is the Addition for Poor Driver, D is the Addition for City Residence, and E is the deduction for Rural Residence.

    It just gets really long and complicated, and confuses me to the point where i don't know where i went wrong, if it's my defining cell names the wrong way or what...

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,810

    Re: Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    It just gets really long and complicated, and confuses me to the point where i don't know where i went wrong,
    It's not a popular answer around here, but whenever I have a formula that "gets really long and complicated" to the point that it "confuses me," I break the formula up into manageable sections. Can I assume you are able to put together a single VLOOKUP() for each term in the summation? If so, I would perform each VLOOKUP() separately. With the result of each VLOOKUP() in its own cell, the final result would appear to be a simple =sum() function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    02-25-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    ok i have this so far

    =IF(ISBLANK(A12),"",VLOOKUP(region_,Insurance!$A$3:$B$7,2,FALSE)+IF($H$8="Excellent",-VLOOKUP(region_,Insurance!$A$3:$D$7,3,FALSE),IF($H$8="Poor",VLOOKUP(region_,Insurance!$A$3:$D$7,4,FALSE),0))+IF($H$7="Rural",-VLOOKUP(region_,Insurance!$A$3:$D$7,5,FALSE),IF($H$7="City",VLOOKUP(region_,Insurance!$A$3:$D$7,6,FALSE),0)))

    it works fine and updates id the driving safety record changes but it doesn't update when the residential status changes....

    Can you guys see whats wrong?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-25-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Help with Nested VLOOKUP function to calculate estimated annual insurance premium

    nevermind, i figured it out... thanks anyways

+ 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