+ Reply to Thread
Results 1 to 3 of 3

Apply Vlookup formula Alternate Columns throughout Worksheet

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Apply Vlookup formula Alternate Columns throughout Worksheet

    Hi

    I have two workbooks with over 2000 columns each (but only a couple of hundred rows) of data. Each data point has a unique identifier. I'm using a vlookup function that finds and returns the appropriate value from one workbook to another. My challenge is to apply this formula to all 2000 rows without having to manually retype the formula in each column and auto-filling. E.g. in the workbook, Columns C, E, G etc (every other column) look up the matching value from the reference workbook and returns it to my combo sheet. Need to extend this formula to columns Q, S, U (and so on)

    A sample worksheet is attached. I have very limited knowledge with macros and formulae, so any help is much appreciated.


    Thanks
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Apply Vlookup formula Alternate Columns throughout Worksheet

    You only uploaded 1 of the files, and that 1 has links to the 2nd file.

    However, if the headings in each WB are the same (identical), I would use index/match rather than vlookup - or build a match() into the column number part of the vlookup
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Apply Vlookup formula Alternate Columns throughout Worksheet

    Hi Ford

    Thanks for the reply. The file uploaded is one of the two workbooks, and I'm importing the data from the second workbook into it.

    I can change the formula from vlookup to index/match, but then how do I copy the formula to all the columns without manually cutting and pasting it in each column? I tried to record a macro to do it (see below), but don't know how to loop the macro so it fills in all columns that are blank in the entire sheet.

    Please Login or Register  to view this content.

+ 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. [SOLVED] Alternate formula for VLOOKUP in reporting.
    By luccallens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 12:38 PM
  2. [SOLVED] How to Apply Different Passwords to Each Columns without Protect worksheet?
    By Rajeshkumar R in forum Excel General
    Replies: 5
    Last Post: 05-13-2013, 07:26 AM
  3. [SOLVED] Formula to Pick Condition-Meeting Cells and Copy Them to Alternate Worksheet
    By SpeshallEd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2012, 07:57 PM
  4. Copy Vlookup Formula to alternate columns
    By Brilar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-09-2011, 04:24 AM
  5. Alternate Vlookup formula
    By mangesh in forum Excel General
    Replies: 3
    Last Post: 07-23-2010, 02:40 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