+ Reply to Thread
Results 1 to 3 of 3

Vlookup not working

  1. #1
    Registered User
    Join Date
    06-13-2009
    Location
    glendale, CA, America
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question Vlookup not working

    Hey guys, I'm trying to use macros to do a vlookup in another sheet.

    So you click on the time button and it sets up the time based on the time you put for the first cell in that list. Then you click the duration button and its supposed to vlookup the time values in another sheet and return a value, but it only gets the fourth row right and misses the first 3 vlookups.

    Any Ideas?
    new pro.xlsm

  2. #2
    Registered User
    Join Date
    07-23-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Vlookup not working

    This may be a novice answer to your problem, but if you change the formulas in 'Power Profile'!C to be rounded to 5 decimals and then do the same in 'Mission Schedule'!B it the macro picks up the values for the first 3 Vlookups. I don't think the Vlookup was good at comparing these values. Someone with more expertise in Excel can probably give a better explanation of why, but this solves your problem.

  3. #3
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Vlookup not working

    Your 'time as text' column is not showing you the true value.
    If you use a 'watch' on 'Arg1' in the VB editor, and then step through the code, you will see that the value that it picks up is NOT the same as is displayed in text in the cell.
    I would think you would be better working directly from the date/times themselves.
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

+ 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.6.0 RC 1