Results 1 to 14 of 14

VBA that does what an Index & Match does

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    VBA that does what an Index & Match does

    Hi Experts
    I have an excel file where I have one column where I have an Index and Match formula to populate the description from another work sheet

    It works perfectly, but because multiple people use it, the formula keeps getting deleted and file saved

    I have tried Format Change and Lock and then Protected the worksheet, but then I have other issues where rows can't be added or people like to go to the last row and just type and it adds to the table, but once protected they can't do all that

    So I was wondering if the Index and Match can be written as a VBA so when the Product Code is entered in Column F, the VBA will do the Index and Match and populate Column G with the description

    The below is the Index and Match formula that I am using

    =IFNA(INDEX(Database!B:B,MATCH([@[Product Code]],Database!A:A,0)),"")
    I have also attached a sample excel file

    Regards
    Rah
    Attached Files Attached Files

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

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