+ Reply to Thread
Results 1 to 3 of 3

Thread: Excel problem, interval

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Exclamation Excel problem, interval

    Hello

    I have a little problem. I have to write a worksheet that allow us to calculate the cost of hospital fees for a person depending on her age. I am given a table that shows how much is the fee for each age. I guess I have to use a Vlookup function.

    Exemple:

    Age Fees

    0 to 5 20$
    5 to 20 50$
    20 to 45 200 $

    So you have to enter an age and my worksheet must give you the correct fees. But how do I write From 20 to 45 years in a excel formula in order to Vlookup to find it and read it as an interval ?

    Tks a lot.

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,165

    Re: Excel problem, interval

    See attached. I used the true statement to get an answer less than the next level if not exact.

    Alan
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Excel problem, interval

    Hi Mouchoirsblancs and welcome to the forum.

    You need to create a VLookup table that has your age ranges. Then use VLookup with a TRUE as the last argument to do approximate returns. Find the attached with your answer. Let me know if you need more.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0