+ Reply to Thread
Results 1 to 4 of 4

Multiple Search

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    ukraine
    MS-Off Ver
    Excel 2007
    Posts
    141

    Multiple Search

    Hi All,
    How can i add multiple search to sumproduct?
    I have tried the below formula and got an error

    Thanks

    =IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($A$1:$A$3,C1)))))>0,"1",IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($b$1:$b$3,C1)))))>0,"2","")

  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
    30,730

    Re: Multiple Search

    Perhaps...


    =IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($A$1:$A$3,C1)))))>0,"1",IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($B$1:$B$3,C1)))))>0,"2",""))


    works OK

    with 1,2,3 in A / 4.5.6 in B, then if C1=2, result is 1:if C1=6, result is 2

    If you want to use the results to do any calculations, remove quotes ..

    =IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($A$1:$A$3,C1)))))>0,1,IF(SUMPRODUCT(--(NOT(ISERR(SEARCH($B$1:$B$3,C1)))))>0,2,""))

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Multiple Search

    or change NOT(ISERR()) to ISNUMBER():

    =IF(SUMPRODUCT(--ISNUMBER(SEARCH($A$1:$A$3,C1)))>0,"1",IF(SUMPRODUCT(--ISNUMBER(SEARCH($B$1:$B$3,C1)))>0,"2",""))

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    ukraine
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: Multiple Search

    Thanks. Solved

+ 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] Search multiple worksheets for search term and paste results in a summary sheet
    By Andy15 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-03-2017, 01:49 PM
  2. Replies: 2
    Last Post: 02-21-2017, 04:14 PM
  3. Create User form to perform search using multiple search criteria
    By cherias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2015, 06:16 AM
  4. Replies: 6
    Last Post: 08-22-2014, 08:47 AM
  5. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  6. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  7. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 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