+ Reply to Thread
Results 1 to 3 of 3

Copy VLookup value from 1 cell to another once for whole column

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    St. Paul, Minnesota
    MS-Off Ver
    2010
    Posts
    2

    Copy VLookup value from 1 cell to another once for whole column

    Hello,

    I'm a total newcomer to Excel functions, macros, and VB code.

    I have created a spreadsheet with a vlookup formula (=VLOOKUP(C2, CustomerName:CustomerCode,2,FALSE)) in column D and I want Excel to copy the returned value from that cell to cell E only once (no updating if that vlookup value changes) perhaps when I enter cell E would be good. Is this possible?

    Thanks for you any help you can provide.

    Stacy

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy VLookup value from 1 cell to another once for whole column

    1. Open your VBA editor by pressing Alt+F11
    2. In the VBA editor, on the left side, is the project explorer
    3. Find your workbook, then double click on the sheet object that you want the code to run on (Sheet1 or whichever sheet)
    4. Paste the code shown below into the white space to the right of the project explorer.

    The code will run automatically any time you double click any cell in Column E.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-31-2015
    Location
    St. Paul, Minnesota
    MS-Off Ver
    2010
    Posts
    2

    Re: Copy VLookup value from 1 cell to another once for whole column

    Thanks walruseggman. That worked perfectly!

+ 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. VBA to copy down Vlookup VBA code in Column till last available data
    By shansakhi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2014, 08:09 AM
  2. [SOLVED] IF or VLookup Formula to Search for a specific SKU and copy it into a different column
    By Sweden12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2014, 12:57 PM
  3. [SOLVED] Copy data from column to other sheets, based upon vlookup/criteria on column a
    By jedemeyer1 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-27-2013, 04:01 AM
  4. Vlookup - copy column formatting and values
    By zainali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 02:49 PM
  5. Macro for Vlookup copy from one column to next one and change column reference
    By RajivShrivastav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2010, 06:39 PM

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