+ Reply to Thread
Results 1 to 4 of 4

Add error checking to existing VLOOKUP formulas

  1. #1
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Bentley, NM
    MS-Off Ver
    Excel 2010
    Posts
    229

    Add error checking to existing VLOOKUP formulas

    I've inherited a real beast of a workbook that contains many VLOOKUP formulas. A lot of the time the Lookup Value is not available and so I'm left with an "N/A" return. Instead of manually modifying the VLOOKUPs to contain error checking such as ISNA or ISERROR, I was hoping to be able to highlight all cells on a Sheet, press a magic button, and have all the VLOOKUPs converted to ISNA(VLOOKUP)s.

    I'm assuming VBA might be the best way to accomplish this... I would try and write it myself, but I'm pretty short on time. Thanks for any help.

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Add error checking to existing VLOOKUP formulas

    Use Iferror(vlookup function),"")

  3. #3
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Add error checking to existing VLOOKUP formulas

    Quote Originally Posted by maw230 View Post
    I'm assuming VBA might be the best way to accomplish this...
    Paste the following code in your relevant vba module and run with the cells you'd like your error check around selected.

    Please Login or Register  to view this content.
    Let me know if that works for you!

  4. #4
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Bentley, NM
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Add error checking to existing VLOOKUP formulas

    Works perfect! I changed the "" to a 0, so that I could use the cells in calculations. Hopefully this will help me jumpstart my venture back into VBA when the time comes!

+ 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. Error Checking using offsets as Formulas
    By ukhellfire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2013, 08:19 AM
  2. vlookup / error formulas and more... Need help please.
    By ugabulldawg98 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2012, 09:17 PM
  3. [SOLVED] Update 1000's Formulas Quickly for Error-Checking
    By AlexWonder in forum Excel General
    Replies: 0
    Last Post: 09-19-2012, 02:32 PM
  4. Help modifying macro to wrap iferror formulas around existing formulas
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2012, 02:04 PM
  5. Checking Columns and Adding For Non Existing Data
    By pterodactyl in forum Excel General
    Replies: 12
    Last Post: 09-25-2011, 07:16 AM
  6. Checking existing data for pairs and looping
    By cheeseslice in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2008, 03:18 PM
  7. Checking for existing worksheet name
    By KtM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2005, 08:25 AM

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