Results 1 to 8 of 8

VLOOKUP gives Mixed Results

Threaded View

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Florida
    MS-Off Ver
    Microsoft for Mac 2008 v12.3.6
    Posts
    11

    VLOOKUP gives Mixed Results

    Need help with setting up two main formulas. First one is for cells I11 to I27 and then repeated at K11 to K27, M11 to M27, O11 to O27, etc all the way up to AY11 to AY27. The present formula I am using works only part of the time and I think there must be some type of syntax error. The formula is as follows =IF(ISNA(VLOOKUP(I$39,$L9:$S9,2,FALSE)),"",VLOOKUP(I$39,$L9:$S9,2,FALSE))

    First, it is suppose to check cell I39 for the year and go to the Lookup table. I have tried VLOOKUP, HLOOKUP, MATCH, LOOKUP, etc but all have the same problem……they get some cell values correct but not all . Using VLOOKUP I wanted to check the date and if it matches then transfer the value from the next cell to the right (position2) to the matching cells below. If no match , then no entry. The problem starts because many of the cells do not get transferred. I believe it is a result of the way I have written the formula…..the problems get worse after year 2020 (column S)

    You will note that the interval time cycle for each event is different …..maybe yearly all the way to every 20 years so there is a wide range of values. It seems like the formula is looking for only a match with the first desired value. Example if you open the spread sheet , you will note that many cells are highlighted with “yellow”. These are cells where the formula did not work. At cell W42 , the formula should have gone to the lookup table and looked for 2022 and since there is a 2022 in cell N10 , should have then transferred the value of -4009 into cell W42.

    The second formula does not exist but you can see the logic on the spreadsheet. Col. H cells H41 to H56 need to look to the right and find the first intersecting value. For cell H11 it should look down row 11 and then see -4026 at cell Q11. Then it should take that value (-4026) and divide it by the number of years shown in column F, cells F11 to F26. And then take that value and put it in all of the cells preceding the -4026. So the value of -805 should be shown in cells J11 - L11 – N11 - P11

    I put a second set of completed cells below the "problem area" to show what the completed document should look like.....done manually.

    Looking for any help I can get

    Thanks
    Last edited by wallyclan; 12-20-2014 at 08:05 AM. Reason: forgot to include attachment

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 11-17-2015, 10:11 AM
  2. [SOLVED] Vlookup giving mixed results on same dataset
    By TexasKersh in forum Excel General
    Replies: 3
    Last Post: 08-04-2014, 11:46 AM
  3. Replies: 1
    Last Post: 05-07-2013, 07:58 AM
  4. Macro activated from multiple sheets causing mixed results
    By Beau Burton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2012, 11:59 PM
  5. I mixed , help me in VLOOKUP()
    By 3Dmajid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-11-2008, 06:40 PM

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