+ Reply to Thread
Results 1 to 3 of 3

Index Match formula to VBA code as the ranges are too big

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Index Match formula to VBA code as the ranges are too big

    Hi All,

    I am trying to create a macro that does exactly as the following formula:

    Please Login or Register  to view this content.
    What I've tried so far is this:

    Please Login or Register  to view this content.
    but unfortunately it returns a #VALUE! error. How can I manage to change it so it returns the actual value as per formula? Also, it should be calculated to the last row in T column.

    Best regards,
    Paul

  2. #2
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index Match formula to VBA code as the ranges are too big

    Try starting by recording a macro in which you enter the formula into a cell. Review the recorded code.

    It will likely do the formula in R1C1, alternatively look at the range.formula method here

    Lastly, you can use many sheet functions via Application.Worksheetfunction.functionname...however this has some limitations and is generally more difficult to work out for complex functions than above recommendations.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Index Match formula to VBA code as the ranges are too big

    ok, So I've tried the following code:

    Please Login or Register  to view this content.
    But there are 2 issues:

    1. After the calculations it shows up as the formula not as the actual value so I need to use text to columns ( Text to Columns - Finish).
    2. The calculated result of the first cell is dropped down, not the formula.

    And I do not have any ideas how to make it work.

+ 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] Need Excel formula to use INDEX and MATCH with multiple criteria's over multiple ranges.?
    By mchilapur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2017, 08:56 AM
  2. How can i translate an Index/Match formula into VBA code?
    By hzarry in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-06-2015, 12:42 PM
  3. Index/Match formula into VBA code
    By Justmegan93 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 05:18 AM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. [SOLVED] index match array formula - replace cell references with ranges
    By nigelog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-17-2014, 10:39 AM
  6. [SOLVED] Index Match Formula in VBA, that utilises Workbook dynamic named ranges
    By JamieW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:39 AM
  7. Excel 2007 : Index, Match, Large Formula: Multiple Criteria, Multiple Ranges
    By SimpleJack in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2013, 08:54 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