+ Reply to Thread
Results 1 to 11 of 11

Vlookup N/A error

  1. #1
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    18

    Vlookup N/A error

    Hi everyone,

    I am working on a large, interrelated excel workbook to conduct research for my honours thesis in forestry. I have used the vlookup function before with no problems; however, I have just encountered the n/a error when trying to look up a value from another worksheet. I have tried changing the cell format to general and numbers, have messed around with putting quotation marks (" ") around the lookup value and used the "clean" function in front of the lookup value with no luck. I am pretty sure the formula is correct because I have checked it quite a few times. Also, when I put in quotation marks around the lookup value, some cells return as 0 when they should return a value, and then other cells contain N/A. I have attached a smaller sample of my excel document to this thread, and highlighted the column with the error in yellow. Thanks for any assistance you might be able to offer

    Best wishes,
    A stressed uni student :')
    Attached Files Attached Files
    Last edited by exceluniprojecthelp; 08-22-2021 at 04:42 AM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,055

    Re: Vlookup N/A error

    1. VLOOKUP function takes on the following syntax: Syntax: VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]).
      You have not defined the col_index_num. Which column do you want to lookup in Table1? "KN", "Price", "D-Line" or "HEAD"?
    2. Your values in column I are texts, not numbers, while the values in "Length" column in Table 1 are numbers - use VALUE function to convert to numbers

    Revised formula:=IF(AND(J2=0,C2="r",I2>="9.5"),VLOOKUP(VALUE(I2),Table1[#All],5,FALSE),0)

    5 to lookup for values in "HEAD", 4 for "D-Line" etc.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Vlookup N/A error

    attach the file with the desired result

  4. #4
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: Vlookup N/A error

    Hi Joseph,

    Thanks so much for your reply. I am trying to reference the "Price" column (3) in Table 1. I have uploaded a new workbook where I have put in your formula and also added the desired results in the column next door. Unfortunately, when I use your formula I don't get my desired result. I would be really appreciative of any help you can offer me here, thanks

  5. #5
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: Vlookup N/A error

    Quote Originally Posted by CARACALLA View Post
    attach the file with the desired result
    I have uploaded a new file with a desired result column, thanks

  6. #6
    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,644

    Re: Vlookup N/A error

    Try this:

    =IF(AND(J2=0,C2="r",I2>=9.5),VLOOKUP(VALUE(I2),Table1[#All],3,FALSE),0)
    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.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,055

    Re: Vlookup N/A error

    Remove the brackets in "9.5" if you have converted the values in column I to numbers.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,055

    Re: Vlookup N/A error

    And you do not need the VALUE in VALUE(I2) as well, just I2.

    Full formula:=IF(AND(J2=0,C2="r",I2>=9.5),VLOOKUP(I2,Table1[#All],3,FALSE),0)

  9. #9
    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,644

    Re: Vlookup N/A error

    @josephteh

    They aren't brackets: they are quotation marks (speech marks, or double inverted commas). Brackets are parenthesis, e.g. (), [] or {}.

    The formula you have given is identical to what I suggested in post #6.

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,055

    Re: Vlookup N/A error

    Thanks Ali, yes quotation marks, not brackets.

  11. #11
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 365
    Posts
    18

    Re: Vlookup N/A error

    Thank you so much Ali and Joseph, that fixed 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. Replies: 1
    Last Post: 12-08-2020, 05:16 AM
  2. [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
  3. [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
  4. Concatenate error across 2 worksheets with vlookup error
    By COGICPENNY in forum Excel General
    Replies: 2
    Last Post: 11-30-2015, 07:56 PM
  5. Iferror vlookup if error vlookup if x=Y,
    By rwmeis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2013, 08:24 PM
  6. How to error trap a vlookup that returns an error or #N/A
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 12:01 PM
  7. [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

Tags for this Thread

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