+ Reply to Thread
Results 1 to 6 of 6

formula lookup search

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    formula lookup search

    I have used this formula successfully
    =IFERROR(LOOKUP(1,-SEARCH(U$4,$E6),$H$6:$H$2000)," ")

    but now I need "exact match" between u4 and e6 cells
    How do I change the formula
    Thanks Carroll

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: formula lookup search

    Any possibility you could upload a small sample worksheet so we can see what’s in U4 and E6 and a sample of the data you were searching on?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: formula lookup search

    Sam's right, without a workbook and/or further explanation, this is complete guesswork . . .
    Assuming this formula is in U6, copied across and down???, try:
    =IF($E6=U$4,$H6,"")

    If that works, then the original formula could have been:
    =IF(ISNUMBER(SEARCH(U$4,$E6)),$H6,"")
    Last edited by leelnich; 07-16-2023 at 08:42 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: formula lookup search

    So you say you need an exact match U4 and E6 cells, a search formula will find a value within another cell so it could be some word that is in the middle of a sentence.
    When you say exact match it makes me think you want to find only one word or value that matches the entire contents of a different range.
    So perhaps a search function isn't what would be the most efficient, maybe an if and countif or sumproduct or a vlookup or some other formula would better suit.
    That is why a sample workbook with enough samples that represent your data AND expected results would be helpful.

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    texas usa
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: formula lookup search

    Thanks to Sam and Leelnich - your suggestion worked great
    Thanks much
    Carroll

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: formula lookup search

    Happy to help. If that concludes your thread, please go to Thread Tools just above your first post and mark it as SOLVED. Thanks - Lee

+ 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: 2
    Last Post: 02-16-2016, 03:23 PM
  2. [SOLVED] Alternative to LOOKUP / SEARCH formula
    By williewoo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2015, 10:32 PM
  3. [SOLVED] Lookup formula required to search for two criteria and return result
    By dave1983 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-12-2012, 03:29 PM
  4. search and lookup formula
    By thompssc in forum Excel General
    Replies: 3
    Last Post: 02-07-2012, 07:18 PM
  5. If, isnumber, lookup, search formula problem
    By jamieray in forum Excel General
    Replies: 3
    Last Post: 09-08-2011, 06:44 AM
  6. Search/Lookup Formula?
    By asother in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2007, 08:18 PM
  7. [SOLVED] search/lookup formula help.
    By Paul T in forum Excel General
    Replies: 3
    Last Post: 09-04-2005, 03:05 PM

Tags for this Thread

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