+ Reply to Thread
Results 1 to 6 of 6

Ridiculous Vlookup error

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    142

    Ridiculous Vlookup error

    Hello,

    very frustrating problem that I'm sure is super easy/obvious to someone else, but I've got a nested vlookup with an IF formula on a sheet - It's looking at 100 lines, 89 of those lines the formula works, the other eleven it's showing #value.

    what's odd is, if I remove the IF part of the formula, the lookup brings the correct answer, so I know the information I'm looking for is there, but what I can't work out is why IF the formula is true (proven by just using the lookup), it won't write the response I want for these lines? If I separate the formula, so the lookup is in one box and the IF is in another I get the response I want, but when combined #value

    Formula looks like this =IF(VLOOKUP(B50,'Name of sheet'!F:F,1,0),"CORRECT ANSWER","")

    Can someone show me how stupid I'm being please?

    Thanks.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,725

    Re: Ridiculous Vlookup error

    Post the workbook for troubleshooting, please.

    Generally speaking, as it is not human, Excel is not the one that makes ridiculous mistakes.

    Your thread title is bordering on the unacceptable - something more explicit of the problem would be appreciated.
    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 Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Ridiculous Vlookup error

    I would use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Ridiculous Vlookup error

    Try it this way:

    =IF(COUNTIF('Name of sheet'!F:F,B50),"CORRECT ANSWER","")

    Hope this helps.

    Pete

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Ridiculous Vlookup error

    Becuase Vlookup is using the B50 value, finding it in F:F and returning the Value TRUE and then falling over because there is no condition in the IF function

    Use the Evaluate formula functionality to observe where your formula fails.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Ridiculous Vlookup error

    Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] Vlookup Error - unable to get the vlookup property of the worksheetfunction class
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2019, 02:59 PM
  2. [SOLVED] application vlookup error runtime error 1004, unable to get the vlookup property of the.."
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 12-05-2018, 12:03 PM
  3. Getting ridiculous IRR answers
    By bgreeson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2015, 07:08 PM
  4. [SOLVED] lookup - if(is error(vlookup and error messages meanings
    By grphillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-18-2013, 07:03 PM
  5. Removing ridiculous scientific notations
    By Xmosis in forum Excel General
    Replies: 2
    Last Post: 03-01-2011, 03:10 PM
  6. RIDICULOUS Chart Printing Error
    By pipp22 in forum Excel General
    Replies: 2
    Last Post: 07-14-2010, 01:33 PM
  7. [SOLVED] I think this is ridiculous
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2005, 03: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