+ Reply to Thread
Results 1 to 7 of 7

#N/A error on lookup

  1. #1
    Registered User
    Join Date
    05-13-2011
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    44

    #N/A error on lookup

    Morning all

    Apologies if there is a thread relating to this already but the ones I have found are all slightly different to my problem.

    Column A is a course name. Column B is length of course. I then have reference columns which we'll call C and D. C lists all the courses and D has their corresponding course length next to it.

    The idea is that I can type the course name into A and B will display the length. However, if no course is listed in A, then I get the #N/A error displayed instead.

    I have tried the various ISERROR options and I then get #!NAME errors.

    The formula I am using in B1 is =lookup(A1,C1:C5,D1:D5)

    When I put the course name in A1, the correct length appears in B1 so I know the basic formula works.

    P.S. I can't get conditional Formatting to hide the error either.

    Many thanks and look forward to hearing some good news.
    Last edited by CTCoperations; 02-18-2013 at 08:29 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: #N/A error on lookup

    Try this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    My Suggestion instead of lookup
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: #N/A error on lookup

    hi CTCoperations, an alternative:
    =IF(COUNTIF(C1:C5,A1),VLOOKUP(A1,C1:D5,2,0),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    05-13-2011
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #N/A error on lookup

    Thanks. All working now.

  5. #5
    Registered User
    Join Date
    05-13-2011
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #N/A error on lookup

    Morning all

    I have another querie in regards the above. I have attached a file where I need to display passport info for a group of people. The 'Gen Dec' tab is a sheet that is printed. The 'Crew@ tab has all the names and details. I need to be able to type a name in A20:A43 on the 'Gen Dec' sheet and it pulls the reat of the info in to columns C:I. In C20 on the 'Gen Dec' sheet is a VLOOKUP formula, but I can't get it to work. Anyone out htere able to help?

    Many thanks
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: #N/A error on lookup

    In C20

    =IF(ISNA(INDEX(CREW!C:C,MATCH($A20,CREW!$A:$A,0))),"",INDEX(CREW!C:C,MATCH($A20,CREW!$A:$A,0)))

    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Registered User
    Join Date
    05-13-2011
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: #N/A error on lookup

    Many thanks. Works great

+ 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