+ Reply to Thread
Results 1 to 3 of 3

Vlookup using VBA

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    columbus,oh
    MS-Off Ver
    Office 365
    Posts
    190

    Vlookup using VBA

    Hi ,
    I need help writing a VBA Macro tovlookup data from one sheet to another.
    I want to lookup values into Book1sample.
    This is my formula in C1:

    IF(ISNA(VLOOKUP(A1,[Book2sample.xlsx]Sheet1!$A:$B,2,FALSE)),0,VLOOKUP(A1,[Book2sample.xlsx]Sheet1!$A:$B,2,FALSE))

    Also I want that if there in numbers in Book2sample.xlsx that do not exist in Book1sample then append those records to column A1 and then do the vlookup again in Range C:C.

    I have uploaded the Book1sample ,Book2 sample and the final book1sample needed.
    Help!
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Vlookup using VBA

    Put this in a standard module.
    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Contributor
    Join Date
    08-22-2013
    Location
    columbus,oh
    MS-Off Ver
    Office 365
    Posts
    190

    Re: Vlookup using VBA

    I Can work with this ! Thank you !

+ 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. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  5. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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