+ Reply to Thread
Results 1 to 4 of 4

VLookup Nightmare!

  1. #1
    Registered User
    Join Date
    07-24-2006
    Posts
    2

    Question VLookup Nightmare!

    I'm designing a huge spreadsheet to calculate pension benefits under one of several types of defined contribution pension plans.

    On the "inputs" page, the individual is asked to enter (amongst many other things):
    - # of years until retirement
    - Current age
    - Age started employment (with the company)
    - Current Date
    - Start Date (with company)
    - pension plan eligibility date
    - expected retirement date

    this info then feeds into another page which equates the person's age to each specific day of the year. E.g. on Dec 30th, they were 30.01 years old, on Dec 31st they were 30.011 etc. The list is huge, spanning 35,000 rows over 2 columns (one for the date, one for the individual's age). A vlookup function is then used to search for the "expected retirement date" inputted on the previous sheet, and the exact age of the individual on that date is returned. This works fine 99% of the time.

    Problem: all of the variables above can be entered without screwing up the formula. However, when # of years untill retirement is changed, the formula returns #N/A, no matter what that value is changed to. I've spent 2 hours trying to fix this and have found nothing that works. PLEASE HELP!


  2. #2
    Registered User
    Join Date
    07-24-2006
    Posts
    2

    more info

    the problem described above (returning #N/A) does not occur when multiples of 4 are entered into the "# of years until retirement" cell.....any thoughts???

  3. #3
    tim m
    Guest

    Re: VLookup Nightmare!

    Can you post your formula?

    "twarden" wrote:

    >
    > the problem described above (returning #N/A) does not occur when
    > multiples of 4 are entered into the "# of years until retirement"
    > cell.....any thoughts???
    >
    >
    > --
    > twarden
    > ------------------------------------------------------------------------
    > twarden's Profile: http://www.excelforum.com/member.php...o&userid=36710
    > View this thread: http://www.excelforum.com/showthread...hreadid=564423
    >
    >


  4. #4
    Pete_UK
    Guest

    Re: VLookup Nightmare!

    I don't understand why you need a lookup table to calculate the
    person's age or the years to retirement - you can subtract dates
    directly, or use functions like DATEDIF.

    The multiple of 4 years implies you have a problem recognising leap
    years or non-leap years - have you included for this in your table?

    Hope this helps.

    Pete

    twarden wrote:
    > the problem described above (returning #N/A) does not occur when
    > multiples of 4 are entered into the "# of years until retirement"
    > cell.....any thoughts???
    >
    >
    > --
    > twarden
    > ------------------------------------------------------------------------
    > twarden's Profile: http://www.excelforum.com/member.php...o&userid=36710
    > View this thread: http://www.excelforum.com/showthread...hreadid=564423



+ 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