+ Reply to Thread
Results 1 to 8 of 8

Lookup a value in a table having entered 2 key values. INDEX ?

  1. #1
    Registered User
    Join Date
    04-14-2008
    Posts
    4

    Lookup a value in a table having entered 2 key values. INDEX ?

    Hi,

    I have a table of money rates. The monthly rate depends upon
    1. how long a loan is taken out and
    2. how much is borrowed.

    The user has to enter these 2 bits of info before excel examines a table selects a rate. A simple formula (which even I could do!?) calculates the monthly payment.

    Please see the attached. I nearly got there using INDEX, but the trouble is that the value column contains a range rather than a fixed value.

    I would be most grateful for a solution.

    Thanks in advance.

    Rob
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    tRY:

    Please Login or Register  to view this content.
    Confirmed with CTRL+SHIFT+ENTER instead of just ENTER.. you will see { } brackets appear around the formula.

    The formula could be less complex if you change your column and row titles to be just numbers (rows - start numbers, column year numbers)

    For instance, if you entered just the numbers 1 - 5 for the years and you entered 2000, 5000, 15000 for the Capital Values, then the formula would be
    Please Login or Register  to view this content.
    normally entered.
    Last edited by NBVC; 04-14-2008 at 01:35 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    for such a small table
    try this put amount in b2 years in c2
    d2 and e2 return results(d2 and e2 are conditionaly formatted to change text to the same color as cell ,white,if nothing is in b2 or c2)
    its a lazy way but quick
    Attached Files Attached Files
    Last edited by martindwilson; 04-14-2008 at 04:40 PM.

  4. #4
    Registered User
    Join Date
    04-14-2008
    Posts
    4

    Thanks!

    Awsome NBVC - I would never have dreamt of the 1st formula! The 2nd is ample, as I will hide the rates on a 2nd sheet, and the user will just enter the years and value and be presented with the rate. - I have now learnt how the "match type" in MATCH works. Ready for next time perhaps!?

    Martinandwilson - thank you as well, but I could not download your file for some reason.

    Best regards
    Rob

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    strange that i couldnt get it myself
    re uploaded it now ok

  6. #6
    Registered User
    Join Date
    04-14-2008
    Posts
    4

    No joy with the attachment

    Sorry Martin. It tries to download and then hangs.
    Rob

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    dang this new fangled allowing to post .xls back to the old zip for what its worth
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-14-2008
    Posts
    4

    Zip is OK

    Thanks Martin. Now received it OK. At work so will have a closer look tonight. Thanks for your help.

    Regards

    Rob

+ 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