+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP returning random values

  1. #1
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    VLOOKUP returning random values

    Hello,

    I am using vlookup formula to return values from power query import and by some reason excel is returning random values or zeros instead of the appropriate value.

    How to fix this?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,317

    Re: VLOOKUP returning random values

    What's the exact formula you are using? Have you set the fourth argument (TRUE or FALSE) at the end of the formula?

    Do you really expect us to be able to help with so little information?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: VLOOKUP returning random values

    Sorry, for being not informative enough.

    I am using a VLOOKUP formula.
    And no, I have not set the fourth argument, which one should I choose?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP returning random values

    the question asked was what was the exact formula, we know you said you used vlookup.

    the 4th argument tells excel to look for an exact match in potentially unsorted data (1) or in sorted data, to return the exact or 1-before-exact match (0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: VLOOKUP returning random values

    Quote Originally Posted by kao View Post
    And no, I have not set the fourth argument, which one should I choose?
    When you don’t set it the default is TRUE......so if that isn’t working you need FALSE

    When 4th argument is FALSE you will get an exact match only - data doesn’t need to be sorted
    Audere est facere

  6. #6
    Forum Contributor
    Join Date
    06-18-2017
    Location
    Lithuania
    MS-Off Ver
    2016
    Posts
    177

    Re: VLOOKUP returning random values

    Looks like argument FALSE solved the issue!

    Than you!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: VLOOKUP returning random values

    Happy to help and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VlookUp giving random values instead of #N/A.
    By green99 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-08-2017, 05:43 PM
  2. VLOOKUP Returning random Errors
    By Midnight412 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 04:57 PM
  3. VBA Vlookup not returning values
    By richardlewis07 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-13-2013, 03:10 PM
  4. [SOLVED] VLOOKUP giving random and repeated values?!?
    By ajasons in forum Excel General
    Replies: 6
    Last Post: 05-22-2012, 11:50 AM
  5. Vlookup returning random numbers
    By jamesstorx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2011, 12:05 PM
  6. Vlookup 3 random values
    By freud1 in forum Excel General
    Replies: 2
    Last Post: 04-28-2010, 06:10 AM
  7. Vlookup not returning values
    By vamshi57 in forum Excel General
    Replies: 6
    Last Post: 12-12-2009, 07:05 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