Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8268039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:44:26+00:00 2026-06-08T05:44:26+00:00

For example: F2 = VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0) I would like to add in the function that

  • 0

For example:

F2 = VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0)

I would like to add in the function that if $L$2 can not be found in the sheet2!$A$2:$G$169, then show “invalid”.

May i know how should i modified to code in excel? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:44:28+00:00Added an answer on June 8, 2026 at 5:44 am

    First test what gets returned if $L$2 cannot be found by putting in a value you know is not in the search set. For example if it returns 0 then:

    =IF(VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0) = 0, "invalid", VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0))
    

    If it returns an error then try something along the lines of

    =IF(ISERROR(VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0)), "invalid", VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0))
    

    or just

    =IFERROR(VLOOKUP($L$2,sheet2!$A$2:$G$169,6,0), "invlaid")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Example: var sessions = require('sessions'); function load_session(req) { sessions.load(sid); } Now that the session
i would like to do a vlookup, but i would like it to match
Example HTML: <div id=foo class=class_one></div> How can I add the class class_two without replacing
Example If the user searches car I would like the output to look like
Example: copy in one tmux pane (via vim), then switch to another pane (running
Example: an Employee table with an optional DateOfBirth field can be normalized into two
Example: batchTag is an enumerated type attribute of a batchRange, with values like so:
Example class code: <?php class example { public function forExample() { return true; }
Example output from PHP: { RootName_0:{Id:1,ValId:1,Value:Colour,Text:Blue}, RootName_1:{Id:1,ValId:2,Value:Colour,Text:Red} } How can I use Backbone.js or
Example of function: call getThings(amount, place, limit, marginError) SYNOPSIS: CALL getThings(4, PA, 3, 1.2);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.