Results 1 to 6 of 6

Macro to Replace Cell with VLOOKUP

Threaded View

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question Macro to Replace Cell with VLOOKUP

    Hi I'm very new at using Macros I only know to record them not to write them but recording this one didn't seem to work quite right.

    I'm trying to do the following:

    Replace the value of Column 1 (Account number) with its corresponding value that is Restaurant name.
    I have a long list of data and I would first filter the accounts I want that are in column one. However only some of these are restaurant accounts (I'm only interested in these)
    Then after filtering them, I would like the macro to run a vlookup to another sheet to search for the restaurant name that matches the content of the cell in column 1 and then paste itself as values on top of the account number.

    The problem I have is these lists of data are going to vary in size, I want the macro to detect when there is no more data and then stop because I had the problem when recording it that I had to go all the way down to row 100,000 and the macro would turn really slow and it would ruin the purpose because I want to copy the data to another document to upload to SAP system.

    Any ideas?

    The accounts I'm interested in are the ones above: 990001348 (to help you with the initial filter) The vlookup table is on sheet 2. The column of the table I want is 3.

    Thanks!!!!
    Attached Files Attached Files
    Last edited by borjasanz; 11-15-2013 at 07:03 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. USing a MAcro to replace the date a vlookup is using.
    By brewcitybiz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2012, 08:17 PM
  2. Plz help me to replace vlookup formula with a macro
    By A100KA in forum Excel General
    Replies: 3
    Last Post: 12-30-2011, 10:05 PM
  3. Macro to replace VLOOKUP
    By EHarvill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 10:36 AM
  4. Excel 2007 : VBA Macro to replace VLOOKUP
    By MLS Packer Lover in forum Excel General
    Replies: 0
    Last Post: 02-08-2011, 09:39 AM
  5. Replace Vlookup function with Macro.
    By catchme1nce in forum Excel General
    Replies: 0
    Last Post: 07-08-2010, 09:55 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