+ Reply to Thread
Results 1 to 2 of 2

convert Index / Match formula to VBA

  1. #1
    Registered User
    Join Date
    04-27-2011
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    10

    convert Index / Match formula to VBA

    Hello.


    I appear to be going around in circles with this problem.

    I have Data coming from a couple of instruments. Data from one instrument needs to be linked the data in the second.
    For example for each round of distance readings (all to the one location) the last time needs to be extracted and the temperature and pressure readings for this time placed in the spreadsheet.

    I have got this to work with formula in the cells but I have found out that the size of the data changes and would like a macro to place the matched values into the cell.

    The formula I have been using in Sheet “Trim” cell H2 is
    Please Login or Register  to view this content.
    I have tried to replicate this in VB with the code below. It is also contained I the macros that trims the extra reading from each round and places them in the “Trim” sheet.

    the workbook is also attached.

    Any help will be greatly appreciated

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: convert Index / Match formula to VBA

    One way, a bit of a cheat:

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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