+ Reply to Thread
Results 1 to 9 of 9

Errors in Vlookup from another sheet

  1. #1
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Errors in Vlookup from another sheet

    I have a sheet with a VLOOKUP formula =VLOOKUP(G2,'Exam Marks'!A:B,2) with 20 entries - it is working well but there are 3 errors out of the 20 (in red) as I have provided in the sample.

    The correct values are in green to the right of the data.

    Any ideas please?

    TIA Doug
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Errors in Vlookup from another sheet

    As your lookup table is not sorted you need to specify the last argument in the Vlookup as false, or 0
    =VLOOKUP(G2,'Exam Marks'!A:B,2,0)

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Errors in Vlookup from another sheet

    You want an exact match which i believe is the issue.
    Change your formula to this in K2 and drag down:

    =VLOOKUP(G2,'Exam Marks'!A:B,2,0)

    or

    =VLOOKUP(G2,'Exam Marks'!A:B,2,FALSE)
    Say thanks, click *

  4. #4
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Errors in Vlookup from another sheet

    Thanks Fluff and Harribone. I'm new to Vlookup so I was surprised I was that close!

    That has helped me out. Also I did a Trim and paste values which I think may have caused some errors in my original sheet.

    Reps added.

    Thanks again.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Errors in Vlookup from another sheet

    You're welcome & thanks for the feedback.

  6. #6
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Errors in Vlookup from another sheet

    Hi I have another quick question. I can't get conditional formatting to work on this sheet.

    I am trying to colour all values 29 and above green.

    All values under 29 yellow.

    All the values stay green.

    I haveused Conditional Formatting a lot and haven't seen this error.

    It doesnt happen in the other score columns H I J

    Thanks again

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Errors in Vlookup from another sheet

    That's because most of the "numbers" on the Exam sheet are text & not real numbers.

  8. #8
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Errors in Vlookup from another sheet

    Ok I solved it by using =value to make it a number and copy paste special values. So all good!

  9. #9
    Forum Contributor
    Join Date
    04-15-2016
    Location
    Gold Coast Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2021
    Posts
    138

    Re: Errors in Vlookup from another sheet

    Thanks again Fluff - you beat me to it.

+ 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 Not working but no Errors with data on same sheet
    By obrienstrc1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2018, 12:07 PM
  2. VLOOkUP errors
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2012, 03:14 PM
  3. Replies: 1
    Last Post: 03-01-2011, 03:31 PM
  4. Vlookup Errors
    By hardeep.kanwar in forum Excel General
    Replies: 13
    Last Post: 07-14-2009, 09:19 AM
  5. Vlookup errors
    By alymcmorland in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2005, 07:40 AM
  6. VLookup Errors
    By Erika in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2005, 06:06 PM
  7. [SOLVED] errors using Vlookup
    By BLW in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2005, 02:11 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