+ Reply to Thread
Results 1 to 15 of 15

I use VLookup and get #N/A error.

  1. #1
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Exclamation I use VLookup and get #N/A error.

    I'm using Excel 2002 and I have used VLookup for a markbook but it gives me a #N/A error. There are three marking criteria (KAPS, MAPS and CAJ) and when those three cells are filled in with a mark (A+ to E-), I wanted the end result to show up as an average (Example: A for KAPS, C for MAPS and A for CAJ = B+ overall). I can attach my markbook if anyone wants to view the problem in more detail. I didn't expect this to be so complicated... or is there something I missed?
    Attached Files Attached Files
    Last edited by Sabrith; 03-24-2013 at 01:42 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: I use VLookup and get #N/A error.

    The workbook you posted does not have a sheet named: =Conversion
    for use in the formulas: =VLOOKUP(D4,Conversion!$D$1:$E$15,2,FALSE)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    Ok I'll add the sheet.

  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,929

    Re: I use VLookup and get #N/A error.

    What Ben is trying to tell you, is that your formula is trying to reference a sheet that doesnt exist in your workbook. If you just "add the sheet", unless it has the data that the formula is trying to reference, it still wont work
    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
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    So now I have the sheet called 'Conversion' and I have the data filled in on that sheet too. But I think I'm still missing something because it still wont work.
    Attached Files Attached Files

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

    Re: I use VLookup and get #N/A error.

    your formula is looking for something in D4...IF that is the correct reference, there is nothing in D4, therefor it has nothing to search for.

    I would suggest that you do a bit of trouble-shooting on your own 1st, before posting more questions here

  7. #7
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    I think the D4 is referring to the information that needs to be put in specifically by the user. Example: It is blank until you choose anything from A+ to E-, then it should appear in the cells bellow (row 58). But it still doesn't show up even if I write a mark. I've been at this all day so far and it is starting to frustrate me. I'll mess around with it until I can come up with something.

  8. #8
    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,929

    Re: I use VLookup and get #N/A error.

    I changed your formula, use this, copied down and across...

    =IFERROR(INDEX(Conversion!$D$1:$E$15,MATCH(Marks!D4,Conversion!$D$1:$D$15,0),2),0)

  9. #9
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    Sorry, but where do I put the formula? E58/F58/G58 and below? Or H58/I58 and below? I don't use Excel very often so I'm confused...

  10. #10
    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,929

    Re: I use VLookup and get #N/A error.

    Sorry. copy it to E58:G81

  11. #11
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    All it does is change everything to #NAME?.

  12. #12
    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,929

    Re: I use VLookup and get #N/A error.

    works for me, see the attached
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    I know whats going on. I'm using an older version of Excel. Thanks for the formula though, I will use it when I get back on a better computer with a newer Excel. So this is pretty much solved?

  14. #14
    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,929

    Re: I use VLookup and get #N/A error.

    OK that would do it. I saw the .xlsx extention and assumed you were using 2007 or later, didnt even look at your profile. Try this for older versions of excel...

    =IF(iserror(INDEX(Conversion!$D$1:$E$15,MATCH(Marks!D4,Conversion!$D$1:$D$15,0),2),0,INDEX(Conversion!$D$1:$E$15,MATCH(Marks!D4,Conversion!$D$1:$D$15,0),2)

  15. #15
    Registered User
    Join Date
    03-23-2013
    Location
    Queensland
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: I use VLookup and get #N/A error.

    It says it has an error, so I'll just use your formula for the newer excel later.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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