+ Reply to Thread
Results 1 to 4 of 4

Ignore Blanks for INDEX/MATCH with multiple criteria search

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    Scotland
    MS-Off Ver
    Excel
    Posts
    8

    Ignore Blanks for INDEX/MATCH with multiple criteria search

    Hello All,

    I have searched online for this solution but I cant seem to get any formulas to work for my example. I have been using INDEX & MATCH in excel to pull data from a table using a row and column heading. The formula I use is:-

    =INDEX($B$5:$K$8,MATCH($A14,$A$5:$A$8,0),MATCH(B$13,$B$4:$J$4,0))

    This looks up the table B5:K8 and matches A14 with the row and B13 with the column. The formula then pulls back the data from the table for these two criteria. However I am not sure how to get the formula to ignore blanks. The column headings repeat on occasion and sometimes the data is missing from the first column and is contained in the second column or third column, the formula only looks up the first matching column and returns the value. I am not sure how to get it to ignore this cell if it finds a blank. Its hard to describe this in great detail without making it sound too complicated. I have attached a sample workbook to demonstrate what I mean

    Index Match example.xlsx

    Please note the data can sometimes be between 10-100 columns long and 1-50 rows in length. The workbook is just a simplified version of what I mean.

    Thanks
    Stephen

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Ignore Blanks for INDEX/MATCH with multiple criteria search

    Could be like this?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-06-2015
    Location
    Scotland
    MS-Off Ver
    Excel
    Posts
    8

    Re: Ignore Blanks for INDEX/MATCH with multiple criteria search

    Thank you Azumi. This is exactly what I needed and I was able to adapt this for a much larger table.

  4. #4
    Registered User
    Join Date
    03-06-2015
    Location
    Scotland
    MS-Off Ver
    Excel
    Posts
    8

    Re: Ignore Blanks for INDEX/MATCH with multiple criteria search

    Azumi,
    Thanks for solving my initial question. Is there a way to put this formula into Visual Basic so that it does the same thing?
    I am working with a larger array and the calculation time takes a minute or two. I was wondering if Visual Basic would speed this up?
    Thanks
    Stephen

+ 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] Return Multiple values from a column with index and match, and search criteria
    By marcusduton in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 02-15-2015, 09:59 PM
  2. How to ignore blanks in an Index/Match Array Formula
    By michaelcarrera in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 08:50 PM
  3. Replies: 0
    Last Post: 11-05-2014, 10:54 AM
  4. Replies: 2
    Last Post: 06-29-2013, 11:58 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 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