+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP not acting the way I think it should

  1. #1
    Registered User
    Join Date
    06-23-2008
    Posts
    9

    VLOOKUP not acting the way I think it should

    I have a VLOOKUP function that looks at a cell that has a folder path, like this: Z:\Statements\Bob

    My VLOOKUP function wasn't returning the data even though I knew I had set the function up right. What I found is that if I remove the slashes ("\") from the folder path, the function will work fine.

    The problem is that I need to preserve the dashes or use something in its place because it is a folder path and I need to retain the full path.

    I tried switching the slashes to dashes like this: Z:-Statements-Bob

    but that didn't work either.

    Anyone run across this and have any ideas?

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: VLOOKUP not acting the way I think it should

    Try doing something like this:

    =VLOOKUP("*Z:\Statements\Bob*",A:B,2,FALSE)

    It may be that you have a space or some other character before or after the string that is making Vlookup skip by the value.

    Using backslashes worked just fine for me, as long as the two strings were exactly the same, or I used asterisks.

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VLOOKUP not acting the way I think it should

    Hello... Input the VLOOKUP with both the files on. Then close the file with the tablearray. Your formula with the slashes will remain the way you want it to be.

    Thx..SW

+ 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