+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP Problem

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80

    VLOOKUP Problem

    Hi,

    I've got a problem with VLOOKUP.

    In one worksheet I have pilotes with the race number and the club and in a second worksheet I have the results.

    So when I type the race number in my second worksheet the name of the pilot should be returned but that's not the case for number 0 and 1

    If I understood well VLOOKUP is not able to work with a 0 (zero) but I really need this 0 and how could this problem be solved

    Many thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP Problem

    You will see that the 1 in the main sheet A4 is actually entered as text, if you select the cell the little green triangle will show a pop-out where you can select to convert to number...

    You can also update formula to:

    =IF(B11="","",VLOOKUP(B11,Pilotes!$A$2:$C$221,3,FALSE))

    to remain blank until you fill in column B.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: VLOOKUP Problem

    The problem is to do with the cell format. I have changed it to'general' and now it picks all values! See attached
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: VLOOKUP Problem

    Change the format in pilotes A4 to general!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    Luxembourg, Luxembourg
    MS-Off Ver
    Excel 2019
    Posts
    80

    Re: VLOOKUP Problem

    Great, this works perfectly.

    But what can I do to be able to work with a 0?

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: VLOOKUP Problem

    The "1" is stored as text. Change it to a number and that is fixed...

    The formula in the first cell, B11, starts looking from Pilotes!A4, not A2... the zero value you are looking for is excluded from the VLOOKUP()!!!

    You could also use...
    Please Login or Register  to view this content.
    instead, it will do the exact same thing in another direction.
    Last edited by ben_hensel; 06-29-2012 at 11:05 AM.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLOOKUP Problem

    Quote Originally Posted by akalien View Post
    Great, this works perfectly.

    But what can I do to be able to work with a 0?
    0 is bringing up Albert Phillippe. Isn't that what it should be?

+ 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