+ Reply to Thread
Results 1 to 3 of 3

Trying to Convert IfError(Vlookup( formula to VBA

  1. #1
    Registered User
    Join Date
    03-03-2022
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    1

    Trying to Convert IfError(Vlookup( formula to VBA

    Hello,

    I'm trying to write the following formula in VBA

    =IFERROR(VLOOKUP($H5,Players!$B$1:$AB$1492,5,FALSE),0)

    We use excel for a hockey pool, and each team page references the players page to retrieve the stats from many different columns. With these repetitive formula's in each cell, the workbook has become quite large. I'm hoping to write code to help alleviate some of the heavy lifting, and reduce the amount of in cell formulas

    Thanks,

    Cross-posted at https://www.mrexcel.com/board/thread...o-vba.1198034/
    Last edited by 6StringJazzer; 03-03-2022 at 11:51 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,618

    Re: Trying to Convert IfError(Vlookup( formula to VBA

    You can write a UDF using range.find; however, no sample file...
    Ben Van Johnson

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Trying to Convert IfError(Vlookup( formula to VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added the link for you because it is your first post but please read our rules before continuing.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. IFERROR Formula with IF and VLookup Statements
    By Thatgirl13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2021, 01:54 PM
  2. [SOLVED] If/ Iferror and Vlookup formula combination help
    By nr6281 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2020, 05:40 PM
  3. IfError Vlookup Formula Not Working
    By ChrisBKemp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2018, 10:42 AM
  4. [SOLVED] IFERROR(IF(VLOOKUP formula help
    By y0brah in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-14-2014, 08:30 AM
  5. How to add ABS Formula with Iferror and Vlookup
    By vajeednawab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 06:16 AM
  6. [SOLVED] Using VLOOKUP and CONCATENATE within an IFERROR formula
    By mowens74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 12:24 PM
  7. [SOLVED] IFERROR convert to 2003 Formula
    By FLani in forum Excel General
    Replies: 1
    Last Post: 07-11-2012, 10:57 PM

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