+ Reply to Thread
Results 1 to 4 of 4

Confirm True in Logical Test using Find

Hybrid View

bdb1974 Confirm True in Logical Test... 11-09-2009, 10:56 AM
shg Re: Confirm True in Logical... 11-09-2009, 11:02 AM
sweep Re: Confirm True in Logical... 11-09-2009, 11:03 AM
bdb1974 Re: Confirm True in Logical... 11-09-2009, 01:44 PM
  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Confirm True in Logical Test using Find

    HI all,

    I'm trying to use the following formula to verify if the "," is within a cell.
    Something is not right, because even for True conditions, I'm getting a False
    return.
    I think my True logical test is not written right.
    Can someone please verify and provide the logical test for True part of the function.

    =IF(FIND(",",C808)=TRUE,LEFT(C808,FIND(",",C808)-1),C808)

    Thanks,

    BDB
    Last edited by bdb1974; 11-09-2009 at 01:44 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Confirm True in Logical Test using Find

    FIND doesn'r return a logical value -- it returns either a number or a #VALUE! error. So test for ISNUMBER()
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Confirm True in Logical Test using Find

    Hi,

    FIND produces a number, not a boolean result. This should work for you:

    =IF(ISNUMBER(FIND(",",C808)),LEFT(C808,FIND(",",C808)-1),C808)
    Note also that if you have the comma selected as a thousand separator, excel may well ignore it if your data is entirely numerical.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Confirm True in Logical Test using Find

    Thank You to, Sweep and SHG.

    The IF(ISNUMBER works just fine.


    BDB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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