+ Reply to Thread
Results 1 to 2 of 2

VBA code for change vlookup formula to vlookup formula with ISNA

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    31

    VBA code for change vlookup formula to vlookup formula with ISNA

    DEAR ALL

    I required a vba code to convert the vlookup formula to vlookup with ISNA formula

    For example I put a vlookup formula in cell H3 as “+ VLOOKUP(G3,$B$3:$C$5,2,0)”
    To include ISNA formula I need to do following actions
    1. I press F2 in cell H3.
    2. Copy the formula without + or = Symbol like “VLOOKUP(G3,$B$3:$C$5,2,0”
    3. Clear the contents in Cell H3.
    4. Type the formula like “+If(isna(Paste formula),0,Paste formula)
    I tried through macro recording but its not help ful.

    Any one help me in this regard.
    Regards.

    Prasanna.E
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VBA code for change vlookup formula to vlookup formula with ISNA

    Instead of doing all those things just add =IFERROR(VlookupFormula,"")

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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