+ Reply to Thread
Results 1 to 4 of 4

Instead of showing #N/A and #REF!, i want the result show as "Not Found" and "Found"

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    Sgainpore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Instead of showing #N/A and #REF!, i want the result show as "Not Found" and "Found"

    VLOOKUP is what I'm using, [=VLOOKUP(A2,'All Computers_AP1'!A:A,2,FALSE)] and [=VLOOKUP(A2,'All Computers_ADASIAPAC'!A:A,2,FALSE)]. How can I show my result in word of 'Found' or 'Not Found'? Attach with my Template for your better review. Thanks, Newbie OUT!

    I have 3 sheet. Sheet1 (RowA) is the 'Target', sheet 2(RowA) and 3(RowA) are the 'Source'. Sheet1(RowD & E) are the result found after comparison with sheet2 and 3.
    Attached Files Attached Files
    Last edited by DonnyLau; 06-12-2013 at 08:26 AM.

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

    Re: Instead of showing #N/A and #REF!, i want the result show as "Not Found" and "Found"

    hi DonnyLau, welcome to the forum. COUNTIF seems sufficient.
    =IF(COUNTIF('All Computers_AP1'!A:A,A2),"Found","Not Found")
    =IF(COUNTIF('All Computers_ADASIAPAC'!A:A,A2),"Found","Not Found")

    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

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Instead of showing #N/A and #REF!, i want the result show as "Not Found" and "Found"

    FYI, the reason you are getting a #REF error is that your VLOOKUP is asking to return information from the second column but you only put in a range of 1 column

    =VLOOKUP(A124,'All Computers_ADASIAPAC'!A:A,2,FALSE)
    should be
    =VLOOKUP(A124,'All Computers_ADASIAPAC'!A:B,2,FALSE)
    or
    =VLOOKUP(A124,'All Computers_ADASIAPAC'!A:A,1,FALSE)
    Hope that helps in the future.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-11-2013
    Location
    Sgainpore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Instead of showing #N/A and #REF!, i want the result show as "Not Found" and "Found"

    Thanks ChemistB and Benisiryo both Guru. Both formula Works to me!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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