+ Reply to Thread
Results 1 to 4 of 4

COL_INDEX_NUM fixed in VLOOKUP in Excel 2007

  1. #1
    Registered User
    Join Date
    05-22-2007
    Posts
    2

    COL_INDEX_NUM fixed in VLOOKUP in Excel 2007

    Hello Friends,

    We found something interesting, but also annoying. It seems that Microsoft has changed the way the function VLOOKUP works in Excel 2007.

    In my previous Excel version (2000) when I used VLOOKUP, I could later-on insert columns anywhere in the TABLE_ARRAY. Excel increased itself the COL_INDEX_NUM to find the original destination column.

    Now in Excel 2007, if I insert a column in the TABLE_ARRAY, the COL_INDEX_NUM stays fixed. My vlookup brings up whatever the column left to the original destination column contains. I find this quite dangerous, it leads to unexpected results, if you don't have a close eye on it.

    Please have a look at the attached Excel example, adding a column after column C will change the value of VLOOKUP function in cell A1.

    Has anyone an idea, how we could use VLOOKUP the way it worked originally? We tried "$", serched the help docu and the internet and this forum, no findings.
    Attached Files Attached Files

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Look at the user defined VHLOOKUP function on my site.
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    05-22-2007
    Posts
    2

    Thank you Mr. Winter for your quick response :-)

    Thank you Mr. Winter for your quick response :-)
    The idea of your program is very good,
    but quite honestly, I was rather looking for a solution without programming.

    I also fear, that it does not solve the issue I have, see example attached in my previous message.

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    I experienced the same problem as you have with Excel2007, still using the 2000 version.

    Before I created this UDF I used a hidden row with index numbers but that became a frustrating solution. Once you forget to adjust the hidden row after inserting a column wrong figures will apperear.
    With this VHLOOKUP UDF these problems are all history.
    Last edited by WinteE; 05-25-2007 at 04:57 AM.

+ 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