+ Reply to Thread
Results 1 to 5 of 5

Output comes up with #VALUE! when I use OR() and SEARCH()

  1. #1
    Registered User
    Join Date
    12-06-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365 Subscription
    Posts
    17

    Output comes up with #VALUE! when I use OR() and SEARCH()

    I want two worksheets where on Sheet2 the cell D19 is referencing cells from Sheet1 if they contain "RB". Here is the formula I put down but it doesn't work as it is only returning #VALUE!.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    When I have it where it only searches specifically for "RB" but nothing else, it works fine:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    . However this isn't what I want because there are some cells that contain RB along with other text.

    I appreciate any with with the solution. Thanks!

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Output comes up with #VALUE! when I use OR() and SEARCH()

    You can use:

    =IF(COUNT(SEARCH("RB", Sheet1!$B6), SEARCH("RB", Sheet1!$C6)), Sheet1!A6, " ")

    Or:

    =IF(COUNTIF( Sheet1!$B6:$C6,"*RB*"), Sheet1!A6, " ")
    Last edited by Phuocam; 12-06-2018 at 11:52 PM.

  3. #3
    Registered User
    Join Date
    12-06-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365 Subscription
    Posts
    17

    Re: Output comes up with #VALUE! when I use OR() and SEARCH()

    Perfect! That worked. Thank you! What do the *'s mean in the COUNTIF() statement?

    Also, do you know if there is then a way I can get it so that the following entries then line up consecutively? Here is what happens currently:

    Please Login or Register  to view this content.
    It is copying from the table in Sheet1 but has all the spaces that don't qualify as empty. How could I do it so that they would go to the next row?
    I would also like it to then add future entries automatically if that is possible.

  4. #4
    Registered User
    Join Date
    12-06-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365 Subscription
    Posts
    17

    Re: Output comes up with #VALUE! when I use OR() and SEARCH()

    I imagine that it could work something like I have to test if the cell = 0. If it does not equal 0 then test the next cell down. If it does equal 0 then put the text in there. However I'm not sure how to do that or if that is even correct.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: Output comes up with #VALUE! when I use OR() and SEARCH()

    If you could upload a desensitized copy of your workbook it might help someone provide a solution.
    To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] help to get Yes/no output based on keyword search
    By Thintin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-23-2018, 08:24 AM
  2. Replies: 4
    Last Post: 07-05-2018, 04:14 AM
  3. Search data set and output corresponding value
    By freeurmind in forum Excel General
    Replies: 3
    Last Post: 09-16-2013, 03:06 PM
  4. Single Search Output
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2009, 09:07 PM
  5. Search for value and output corresponding value
    By bigbeezy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-19-2009, 02:14 AM
  6. How do I search Strings and get an output?
    By dziw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2007, 02:26 PM
  7. output a search
    By Skriit in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-06-2007, 10:16 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