+ Reply to Thread
Results 1 to 4 of 4

search 2 criteria and if it matches give me the number of matches

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    2

    search 2 criteria and if it matches give me the number of matches

    I have 2 files. 1 files is the data and the second file is what I am trying to get from the data. I have it separate because the data file changes every month.

    For all fields in F (Data file) that matches the word like “Arbor Brook” for A5 (Formula file) and “Business Essentials” (B2 in Formula file) it gives me a count. So for this one it should return 3.

    How do I create a formula that will do that and also if possible I don’t want to open the Data file. As I get new data files each month I will just name it the same so it knows which file to use.

    Also want to do that for "Business Premium" and property name.

    Thank you
    excel2016Data.pngFormulaFile.png

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: search 2 criteria and if it matches give me the number of matches

    Attach a sample workbook. 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.

  3. #3
    Registered User
    Join Date
    02-14-2017
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    2

    Re: search 2 criteria and if it matches give me the number of matches

    I uploaded the 2 files.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: search 2 criteria and if it matches give me the number of matches

    Try

    in B3

    =SUMPRODUCT(--ISNUMBER(SEARCH($A3,'C:\Users\xxxxx\Downloads\[Office365UsersTest.xlsx]Office365Users'!$A$1:$A$1000))*--ISNUMBER(SEARCH("Essentials",'C:\Users\xxxxx\Downloads\[Office365UsersTest.xlsx]Office365Users'!$B$1:$B$1000)))

    in C3

    =SUMPRODUCT(--ISNUMBER(SEARCH($A3,'C:\Users\xxxxx\Downloads\[Office365UsersTest.xlsx]Office365Users'!$A$1:$A$1000))*--ISNUMBER(SEARCH("Premium",'C:\Users\xxxxx\Downloads\[Office365UsersTest.xlsx]Office365Users'!$B$1:$B$1000)))

    File can be closed

    just change Filepath to yours

+ 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. Replies: 7
    Last Post: 12-08-2016, 04:35 PM
  2. How to use a multiple criteria index search with to find all matches
    By bossmanamr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2015, 09:41 PM
  3. Replies: 5
    Last Post: 09-01-2014, 08:05 AM
  4. Replies: 0
    Last Post: 05-22-2014, 04:17 AM
  5. [SOLVED] search for specific data in two columns and if it matches returns an ID number
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 01:48 PM
  6. Multiple Matches to give corresponding value
    By dmatisoff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2012, 10:41 AM
  7. Replies: 0
    Last Post: 08-11-2012, 03:25 PM

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