+ Reply to Thread
Results 1 to 3 of 3

Writing code for a function to combine iferror and vlookup

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Writing code for a function to combine iferror and vlookup

    I use =iferror(vlookup( , , ,false),"") all day and i was wondering if anyone could help me write some code to create a new function that will do this for me. I have created a few simple vba functions in the past but i am having trouble with this one. Ideally it would only require three inputs as the rest is always the same.

    Any ideas?
    Last edited by tommyko; 05-31-2012 at 05:40 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Writing code for a function to combine iferror and vlookup

    tommyko,

    Welcome to the forum!
    Give this a try:
    Please Login or Register  to view this content.


    Usage:
    =ErrLookup(LookupValue,rngLookupTable,ColNum)

    Example:
    =ErrLookup(A1,D1:F10,3)
    Hope that helps,
    ~tigeravatar

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

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Writing code for a function to combine iferror and vlookup

    Thank you! It worked great!!

+ 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