+ Reply to Thread
Results 1 to 11 of 11

Index Match converts into VBA.

  1. #1
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Index Match converts into VBA.

    Using Excel 2010
    Hello,

    I am using formula Index Match in range AC6:BS211876 where Check column has 211876 row and N & T 6000 rows shown with small example but with large data freeze my PC. Also if data are not finds it display error #N/A.

    It would be great if any VBA solution.

    Regards,
    Moti
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Index Match converts into VBA.

    Try

    Please Login or Register  to view this content.
    Check Sheet2

    Based on Bebo's previous posting: any errors are mine alone!

    And for formula

    in AC6

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 03-19-2024 at 12:51 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Index Match converts into VBA.

    Quote Originally Posted by JohnTopley View Post
    Try[CODE]Please Login or Register to view this content.[/FORMULA]
    Hello JohnTopley,

    No error at all VBA is a 5 star solutions worked with large data within eye blink time.

    Thank you for editing formula without errors it is useful also.

    I appreciate you time and help solving my problem.

    Have a nice day, good week ahead and Good Luck!

    Regards,
    Moti
    Last edited by Motilulla; 03-19-2024 at 04:17 PM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Index Match converts into VBA.

    Thank you for the rep ....but thanks are really due to Bebo as I "borrowed" his code.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Index Match converts into VBA.

    This request is really interesting, and I believe using VBA code is definitely the optimal choice.
    @JT, although you used my original code from the other topic, the additional part, the adjustments are indeed interesting.
    @Motilulla, although it works well for your example, I still have a small note as follows:
    Please Login or Register  to view this content.
    It's true when in your example, "Text" column is "A, B, ..., Z"
    If it's different, then the code above will be incorrect.
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Index Match converts into VBA.

    Quote Originally Posted by bebo021999 View Post
    This request is really interesting, and I believe using VBA code is definitely the optimal choice.
    @JT, although you used my original code from the other topic, the additional part, the adjustments are indeed interesting.
    @Motilulla, although it works well for your example, I still have a small note as follows:
    Please Login or Register  to view this content.
    It's true when in your example, "Text" column is "A, B, ..., Z"
    If it's different, then the code above will be incorrect.
    Hello bebo021999, thank you for the observation yes it is true. Please can you take a look if I changed N6 “A” to “Z” in this case as header AC5:AR5 has no match highlight the above line as you mention in your note.

    Regards,
    Moti
    Attached Files Attached Files

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Index Match converts into VBA.

    Quote Originally Posted by Motilulla View Post
    Hello bebo021999, thank you for the observation yes it is true. Please can you take a look if I changed N6 “A” to “Z” in this case as header AC5:AR5 has no match highlight the above line as you mention in your note.

    Regards,
    Moti
    Your current row 5, only 16 columns (A:P), then
    Please Login or Register  to view this content.
    should expand to 26 (Z)
    Please Login or Register  to view this content.
    also, expand row 5 from AC to BA with A...Z

  8. #8
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Index Match converts into VBA.

    Quote Originally Posted by bebo021999 View Post
    Your current row 5, only 16 columns (A:P), then
    Please Login or Register  to view this content.
    should expand to 26 (Z)
    Please Login or Register  to view this content.
    also, expand row 5 from AC to BA with A...Z
    Hello bebo021999, thank you for pointing out the modification, if I understand as letter “Z” has 26th position that’s why it ReDim & Resize has to be 26 instead 16 perfect got it.

    Have a nice day and Good Luck!

    Regards,
    Moti
    Last edited by Motilulla; 03-20-2024 at 12:19 AM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Index Match converts into VBA.

    @bebo: Good catch!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Index Match converts into VBA.

    @Moti: please mark as SOLVED.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Index Match converts into VBA.

    Quote Originally Posted by JohnTopley View Post
    @Moti: please mark as SOLVED.
    JohnTopley, I appreciate your kind help all has been fixed wisely.100% SOLVED.

    Have a nice day and Good Luck!

    Regards,
    Moti

+ 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] index match function vs index match vba type mismatch
    By johnstylez in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-14-2022, 03:29 PM
  2. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  3. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  4. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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