+ Reply to Thread
Results 1 to 10 of 10

Search function returns #VALUE! error

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Search function returns #VALUE! error

    =SEARCH(E2,Table1[Company])

    returns #VALUE! error
    though I believe I have the formula written correctly...

    I attach the sample file for reference.

    Please help.
    Thanks.
    Attached Files Attached Files
    Last edited by mikehk; 07-20-2020 at 07:23 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function returns #VALUE! error

    You have #VALUE! in cel a2.

    If you change that in Facebook the result in cell H2 = 1.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Search function returns #VALUE! error

    sorry, I don't get it...can you please explain more clearly.

    when I remove the data type it works

    Please see the attached file (with new example added).

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function returns #VALUE! error

    use this formula instead.

    =Match($E$2,$A$9:$A$14,0)

    The result is 4 (4th item).

  5. #5
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Search function returns #VALUE! error

    The match function works well..thanks.

    I want to use the search function as the list is long the user cannot enter the exact name
    for the match function to work

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function returns #VALUE! error

    Duplicated post.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function returns #VALUE! error

    with defined names in column N. => Formula => define names

    And datavalidation in Cell E2.=> Data => datavalidation.

    See the attached file.

  8. #8
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Search function returns #VALUE! error

    Thanks a lot buddy...I got it working. Please see the attached working formula.
    The only problem I see is that the data type doesn't work so will make an helper column to solve this issue.

    Thanks a lot.
    Have a great week.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function returns #VALUE! error

    You have a datavalidation refering to "=_xlfn.ANCHORARRAY($H$2)"

    Can you explain the red part of the formula.

  10. #10
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Search function returns #VALUE! error

    formula in cell $H$2 is

    =SORT(FILTER(Table1[Company],ISNUMBER(SEARCH($E$2,Table1[Company])),"Not found"))

    Hope it helps.

+ 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 returns column header or error if value not found
    By leovfx in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-30-2017, 04:25 PM
  2. [SOLVED] DAY-function returns Error
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-18-2015, 08:17 AM
  3. Search function, that also returns near values
    By aaron_burr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2014, 05:34 AM
  4. Excel search function - That alo returns near value
    By aaron_burr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2014, 04:42 AM
  5. MOD() Function Returns #NUM! Error Value
    By filky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2014, 04:40 AM
  6. [SOLVED] User defined function returns an error on a standard function used in it.
    By pb48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 01:35 PM
  7. Function Returns Value Error
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2011, 10:28 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