+ Reply to Thread
Results 1 to 5 of 5

Index match table mid text file in a macro

  1. #1
    Registered User
    Join Date
    09-11-2019
    Location
    Roseville, California
    MS-Off Ver
    Excel
    Posts
    3

    Index match table mid text file in a macro

    I have a table with 2 columns - one a description and the next a 3 character code.

    I want to add a macro to an existing macro that will lookup a portion of a cell in my working file and find the closest match to what is on the table then have the macro copy the corresponding 3 character code to the working file. Can someone assist, please.

    If the item is not on the table I want to be able to add it to the table. So the table needs to expand as items get added.
    Last edited by torresy01; 09-12-2019 at 09:49 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Index match table mid text file in a macro

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-11-2019
    Location
    Roseville, California
    MS-Off Ver
    Excel
    Posts
    3

    Re: Index match table mid text file in a macro

    I have attached the files:

    Pull and Match Test files are three separate files:

    1. Create a Macro that generates the pivot tables for SUM PT and CAT
    2. Create a Macro that will Match the Line item description from the table to the working file "Pull and Match Test" and place the match on column AB.
    3. Create a Macro that will create the orange section automatically.

    I am unable to find my personal macros. So all of my work so far is lost. Do you know how I can recapture what I had in my personal macros?

  4. #4
    Registered User
    Join Date
    09-11-2019
    Location
    Roseville, California
    MS-Off Ver
    Excel
    Posts
    3

    Re: Index match table mid text file in a macro

    I have a new macro that will pull the files from my directory and create one new file, however, it puts the data into separate worksheets. I need them to be cumulative so I need the macro to recognize an end of row which is where the next file will start. Here is the macro I am using:
    Please Login or Register  to view this content.
    Last edited by alansidman; 09-13-2019 at 08:03 PM.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Index match table mid text file in a macro

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

+ 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. Needing a macro, vlookup, pivot table or index/match to filter contractor gate log
    By laken29 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-14-2015, 08:53 AM
  2. [SOLVED] Macro to format as table from text file
    By sarahw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2015, 06:25 PM
  3. Replies: 2
    Last Post: 12-18-2014, 09:52 AM
  4. [SOLVED] Index Match Match returning incorrect value from table
    By DaveBre in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2014, 08:01 PM
  5. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  6. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  7. [SOLVED] Returning row # using match or index of repeated text in a complex table
    By General in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2005, 11:05 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