+ Reply to Thread
Results 1 to 10 of 10

IF Stmt Returning a TRUE FALSE Value

  1. #1
    Registered User
    Join Date
    05-26-2014
    Location
    Misissauga, ONT
    MS-Off Ver
    2010
    Posts
    4

    IF Stmt Returning a TRUE FALSE Value

    I've tried multiple IF statement that I found on the web and can't seem to get any to work. I am looking to report back a TRUE or FALSE value based on a "certain word" in a cell. This word will not always be separated by spaces. For example: "CW2_MITC_FLR 7_APPROVESWAP" - I would like to report back a TRUE value if this field has the word "APPROVE" in it. It can't be case sensitive either.

    Formula I have tried using =IF(ISERROR(FIND("Approve",G403)),FALSE,TRUE)

    Any help appreciated!
    Jen

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,729

    Re: IF Stmt Returning a TRUE FALSE Value

    find is case sensitive
    and you need to use wildcards

    so search is not case sensitive
    try
    =IF(ISERROR(SEARCH("*Approve*",G403)),FALSE,TRUE)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: IF Stmt Returning a TRUE FALSE Value

    Try this

    Please Login or Register  to view this content.


    Shelton A.
    If Helpful, Add Reputaion!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Stmt Returning a TRUE FALSE Value

    Here's another one...

    =COUNTIF(G403,"*Approve*")>0
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Stmt Returning a TRUE FALSE Value

    Quote Originally Posted by etaf View Post
    =IF(ISERROR(SEARCH("*Approve*",G403)),FALSE,TRUE)
    No need for either the IF function or the wildcards.

    =ISNUMBER(SEARCH("Approve",G403))

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,729

    Re: IF Stmt Returning a TRUE FALSE Value

    Thanks Tony Valko for letting me know always useful to know.

  7. #7
    Registered User
    Join Date
    05-26-2014
    Location
    Misissauga, ONT
    MS-Off Ver
    2010
    Posts
    4

    Thumbs up Re: IF Stmt Returning a TRUE FALSE Value

    Quote Originally Posted by etaf View Post
    find is case sensitive
    and you need to use wildcards

    so search is not case sensitive
    try
    =IF(ISERROR(SEARCH("*Approve*",G403)),FALSE,TRUE)


    Perfect! this works - thank you so much!!

  8. #8
    Registered User
    Join Date
    05-26-2014
    Location
    Misissauga, ONT
    MS-Off Ver
    2010
    Posts
    4

    Re: IF Stmt Returning a TRUE FALSE Value

    Thank you Tony! Much appreciated!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Stmt Returning a TRUE FALSE Value

    Thanks Tony Valko for letting me know always useful to know.
    You're welcome!

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Stmt Returning a TRUE FALSE Value

    Quote Originally Posted by J41 View Post
    Thank you Tony! Much appreciated!
    You're welcome. Thanks for the feedback!

+ 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. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  2. Logical test in IF function returning TRUE when it should be FALSE
    By lvjeff in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-28-2012, 05:13 PM
  3. Returning True/False/Maybe
    By RivFin in forum Excel General
    Replies: 1
    Last Post: 02-03-2011, 06:29 PM
  4. Formula for returning True (1) or False(0)
    By wish2excel in forum Excel General
    Replies: 5
    Last Post: 10-11-2010, 04:14 AM
  5. If statements: Non-numerical characters returning false when true
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-24-2009, 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