+ Reply to Thread
Results 1 to 4 of 4

Find row that matches criteria in two columns

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Brisbane
    MS-Off Ver
    365
    Posts
    7

    Find row that matches criteria in two columns

    I created a workbook that displays the site permit status of employees for various types of vehicles.
    I have found a formula that works (below) but is very slow.
    It finds a row in the sheet “PMPQueryAll” that matches both the employee name in cell A2 to those listed in column C of “PMPQueryAll” and the permit type in B1 to those listed in column I of “PMP QueryAll”. It then displays the status from column F of “PMPQueryAll”.
    It is a rather large data set and I think this formula creates loops wihich make it really slow. Is there a better way?
    It’s also important to note that there are multiple entries for each employee and there is more than one employee for each permit type.

    =IFNA(INDIRECT("PMPQueryAll!$F"&MATCH(1,INDEX((PMPQueryAll!$C:$C=$A2)*(PMPQueryAll!$I:$I=B$1),0),0)),"")

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Find row that matches criteria in two columns

    try using index instead of indirect. Recalculation here is by far more "greedy":
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-23-2018
    Location
    Brisbane
    MS-Off Ver
    365
    Posts
    7
    [QUOTE=Kaper;4996621]try using index instead of indirect. Recalculation here is by far more "greedy"
    Thanks!, this helped quite a bit.
    I’ll leave the thread open to see if there are any further suggestions.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,632

    Re: Find row that matches criteria in two columns

    It's always easier to analyze formula in it's natural environment, so in a worksheet.
    To increase chance for further help consider attachng test workbook (some 10-20 rows of data is usually enough)

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If there are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.

+ 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] Find how many matches based on two criteria
    By jmcconville18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2015, 12:53 PM
  2. Replies: 11
    Last Post: 12-04-2015, 02:38 PM
  3. Replies: 0
    Last Post: 08-11-2012, 03:25 PM
  4. Replies: 8
    Last Post: 02-15-2012, 05:05 AM
  5. Formula to find three different criteria and then sum any matches
    By Weasel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-03-2010, 12:44 PM
  6. find which row best matches the criteria
    By smky_j in forum Excel General
    Replies: 8
    Last Post: 09-06-2010, 06:48 PM
  7. Replies: 2
    Last Post: 03-02-2009, 12:15 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