+ Reply to Thread
Results 1 to 5 of 5

How to find a string in a row and return true or false

Hybrid View

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    7

    How to find a string in a row and return true or false

    Hello,

    I need help with excel, any help would be appreciated.

    This might be a simple solution, but I am not very good at excel.

    I am looking for the word "ERROR" in a row and in 1 specific cell V44, if found I want the cell containing this formula to show "ERROR". IF word "ERROR" is not found in either cell V44 or row H40:U40, i want it to return the result of this: V40+V42-V43.

    So far what I have and it doesn't work:

    =IF((OR(V44="ERROR",HLOOKUP("ERROR",H40:U40, 50, FALSE))),"ERROR",V40+V42-V43)


    Thanks in advance!

    Greg

  2. #2
    Registered User
    Join Date
    04-28-2013
    Location
    Poznań/Poland
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to find a string in a row and return true or false

    Hi,
    I think following formula can help You to solve the problem:

    =IF((OR(V44="ERROR",iserror(HLOOKUP("ERROR",H40:U40, 50, FALSE)=FALSE)),"ERROR",V40+V42-V43)

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to find a string in a row and return true or false

    Try

    =IF(OR(V44="Error",COUNTIF(H40:U40,"Error")),"Error",V40+V42+F43)

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    7

    Re: How to find a string in a row and return true or false

    Quote Originally Posted by Jonmo1 View Post
    Try

    =IF(OR(V44="Error",COUNTIF(H40:U40,"Error")),"Error",V40+V42+F43)
    this one worked! thank you for your help

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to find a string in a row and return true or false

    You're welcome.

+ 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] Finding a specific text string throughout an entire column and if there return true/false
    By myfivemonkeys in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 07:31 PM
  2. Return True/False if a string of words is present in another list
    By tmahoney1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2013, 05:39 PM
  3. [SOLVED] Return True/False by searching a value in an array of string
    By aiyathomas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2013, 12:35 PM
  4. Replies: 9
    Last Post: 01-21-2013, 01:54 AM
  5. Replies: 6
    Last Post: 10-06-2011, 12:32 AM
  6. VBA Find. return True/ False
    By WAW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2010, 06:52 AM
  7. Replies: 3
    Last Post: 03-12-2010, 02:57 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