+ Reply to Thread
Results 1 to 9 of 9

Keep Getting #N/A errors

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    59

    Keep Getting #N/A errors

    For some reason my vlookup formula in the Weight Category column is not working because I keep getting #N/A errors


    I think my look up table titled BMICategory might be wrong. It has to meet these categories:
    Underweight = less than 18.5
    Normal = 18.5 or greater and less than 25
    Overweight = 25 or greater and less than 30
    obese = 30 or greater

    Thank you.
    Attached Files Attached Files
    Last edited by BillJo; 03-28-2015 at 02:29 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,349

    Re: Keep Getting #N/A errors

    Hi BillJo,

    You need to change the False to a True in the last argument of the VLookup function. Try

    =VLOOKUP(B6,BMICategory,2,TRUE)

    False means an Exact Match while True just means in that range.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Keep Getting #N/A errors

    since it is a small table you could use this:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-06-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Keep Getting #N/A errors

    Hi,
    I already have TRUE


    =VLOOKUP(E4,BMICategory,2,TRUE)

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,349

    Re: Keep Getting #N/A errors

    In B7 my copy of your file shows

    =VLOOKUP(B6,BMICategory,2,FALSE)

  6. #6
    Registered User
    Join Date
    03-06-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Keep Getting #N/A errors

    Oh I am sorry the vlookup that I am referring to is in the CurrentData spreadsheet with the look up table in BMICategories spreadsheet.

    Thanks

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: Keep Getting #N/A errors

    Your table is wrong. The values in the first column should be the lower boundary of that range - i.e. the first value in B should be 0 and the others should shift down 1, excluding your duplicated 30 value.
    Everyone who confuses correlation and causation ends up dead.

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,349

    Re: Keep Getting #N/A errors

    Here is what Rory means,
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-06-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    59

    Re: Keep Getting #N/A errors

    Oh, I see thank you.

    On my CurrentData spreadsheet in Column d for example it says M for male but the corresponding G or H column is not right.
    The formulas are returning male results for females and females for males.
    How would I update the formulas?

+ 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. #REF errors
    By StephanieD in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-27-2012, 03:27 PM
  2. [SOLVED] Excel Throwing Circular Errors When No Errors Exist
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 09:20 AM
  3. [SOLVED] Look for Errors
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2006, 11:15 AM
  4. [SOLVED] sum errors
    By Mark Goodwin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2005, 11:06 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