+ Reply to Thread
Results 1 to 7 of 7

convert index and match formula in a macro for a big dynamic spreadsheet

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    convert index and match formula in a macro for a big dynamic spreadsheet

    I have a table of taxation up to 7000 rows sheet Table_1.

    Sheet Recon in same workbook requires columns H which will lookup in table_1 column C to extract taxation rates from column E to H and k.

    Actually using the formula below .

    Looking a macro to convert the formula below with their respective headers from column E to H and K to last data row as spreadsheet is dynamic with 15000 rows of data


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

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    Not sure I understand why you need a macro? Are you saying you need a macro to find the last row? You can just change your reference to full columns.

    Example: 'Table _1'!$C$2:$C$110 to 'Table _1'!C:C

    or lookup dynamic ranges

    I think the full column reference might be all you need
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    I am looking for a macro because other users who work on the workbook mess with formula ,thus it look simpler with a macro button

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    I am looking for a macro because other users who work on the workbook mess with formula
    Lock the sheet and they can't mess with your formulas.

    Anyway, try this...

    Please Login or Register  to view this content.
    Apply to other columns as necessary.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    @Jindon & Jeffrey thank you both for solution provided .

    Both solutions works as a charm

    However @Jindon

    Can you assist the meaning below in the code

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: convert index and match formula in a macro for a big dynamic spreadsheet

    Open method has 4 protocols.
    ActiveConnection, CursorType, LockType & Option and only ActiveConnection can not be omitted.

    In your case
    Please Login or Register  to view this content.
    should suffice.

    See details...
    https://www.w3schools.com/asp/prop_rs_cursortype.asp

    HTH

+ 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. Replies: 5
    Last Post: 11-27-2017, 09:08 AM
  2. [SOLVED] formula for dynamic ranges using index on a big spreadsheet where there are blanks
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2017, 12:18 PM
  3. [SOLVED] Dynamic Array for Index/Match formula
    By Fletch74 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2016, 03:51 PM
  4. Sumproduct or index match dynamic formula
    By jw01 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2013, 07:54 PM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. convert Index / Match formula to VBA
    By fredo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2011, 10:01 PM
  7. dynamic range for index/match formula
    By excellicious in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2008, 07:41 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