+ Reply to Thread
Results 1 to 5 of 5

Column matching and selecting offset data, VBA

  1. #1
    Registered User
    Join Date
    12-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Column matching and selecting offset data, VBA

    Attempting to match values in column E with column G and insert the corresponding number (column H) into column F
    See attached workbook for example.

    Hoping to do this using VBA, not just a VLOOKUP.

    The code below, places 0 values into the correct rows of column F, instead of the correctly associated value.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Shearwater; 07-23-2014 at 10:26 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Column matching and selecting offset data, VBA

    Why don't you use VLOOKUP in the code?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Column matching and selecting offset data, VBA

    Norie,
    having used a similar formula to match column data without the offset, for a different data series, now aiming to increase my understanding of the formula by extracting data from an offset column matching in a similar manner. VLOOKUP only reads left to right, but gaining an understanding of this would enable reading right to left at a later date.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Column matching and selecting offset data, VBA

    The references aren't right in the second part of the formula.

    Try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-15-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Column matching and selecting offset data, VBA

    Norie,
    That does the trick, thank you for your assistance.

+ 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. OFFSET formula with Defined Name not selecting complete column.
    By RiaW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2014, 09:38 AM
  2. Matching a value to a column, (rounding) and returning offset column value
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2013, 02:42 PM
  3. Selecting Offset Chart Data
    By gtiguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2012, 02:40 AM
  4. Selecting whole column after offset
    By bungaree in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2010, 05:10 PM
  5. Selecting matching items in a column
    By Panajohn in forum Excel General
    Replies: 2
    Last Post: 08-15-2005, 05:05 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