+ Reply to Thread
Results 1 to 5 of 5

2 variable index match with wildcard

  1. #1
    Registered User
    Join Date
    12-11-2014
    Location
    New York
    MS-Off Ver
    office 2010
    Posts
    71

    2 variable index match with wildcard

    wondering if anyone can help me out with this one pretty stuck.

    I have 2 tabs on my worksheet:
    Index tab: contains the info I need to extract

    On sheet1 I have partial invoices that contain some only numeric values and some alpha numeric. The second criteria I need to match are the amounts highlighted in yellow.

    The tricky part is with the partial invoices I need to find the numeric part of the partial invoice and compare it to the invoice/claim number on the index tab. once it finds matches I need it to compare the second criteria which is the posamount from sheet1 to index exact values and return the full invoice number on column A of index tab.

    Who ever could figure this one out is really a genius

    thanks guys!

    report.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,730

    Re: 2 variable index match with wildcard

    Put this array* formula in H4:

    =IFERROR(INDEX(Index!$A$2:$A$1600,MATCH("*"&C4&"*"&E4,Index!$A$2:$A$1600&Index!$F$2:$F$1600,0)),"")

    then copy down to the bottom of your list. You will need to scroll down to find some matches.

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual <Enter>.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-11-2014
    Location
    New York
    MS-Off Ver
    office 2010
    Posts
    71

    Re: 2 variable index match with wildcard

    it seems to be working the only thing is that when an invoice or partial invoice number on column C contains non numeric values it does not ignore them and does not only try to match the numeric values

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,730

    Re: 2 variable index match with wildcard

    Can't you arrange it so that only numbers can be typed in to column C? You could use Data Validation on column C to ensure this.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    12-11-2014
    Location
    New York
    MS-Off Ver
    office 2010
    Posts
    71

    Re: 2 variable index match with wildcard

    thanks will try that or run a separate macro to clean up any non numeric values

+ 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 on two Criteria with wildcard
    By SrDurham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2015, 09:04 AM
  2. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  3. [SOLVED] Index,Offest, Match, Wildcard?
    By fgruhlke in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-18-2014, 11:27 PM
  4. [SOLVED] Wildcard text match using INDEX and MATCH
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2012, 03:02 PM
  5. Replies: 4
    Last Post: 04-02-2012, 01:19 AM
  6. 2 Variable + Qty Use INDEX/MATCH but how?
    By heatwave in forum Excel General
    Replies: 3
    Last Post: 09-11-2010, 01:53 AM
  7. INDEX/MATCH with Variable Inputs
    By MaizeMae in forum Excel General
    Replies: 3
    Last Post: 05-30-2010, 12:20 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