+ Reply to Thread
Results 1 to 5 of 5

Quick one(I think!), LEN & IF

  1. #1
    Registered User
    Join Date
    02-09-2004
    Posts
    52

    Quick one(I think!), LEN & IF

    Hi,

    does anyone know if its possible to incorporate the IF and LEN statements,

    I'm trying to say, IF the field is over 62 characters in Legth, show 1, or show 0 if its under.

    I tried various, =IF(A1>62,1,0) but that doesn't work, do I need to use the LEN statement somewhere also?

    Thanks for any help, much appreciated.

  2. #2
    Forum Contributor kraljb's Avatar
    Join Date
    05-26-2004
    Location
    Illinois
    MS-Off Ver
    2007 (recent change)
    Posts
    256
    Try this...

    =IF(LEN(A1)>62, 1, 0)

  3. #3
    Niek Otten
    Guest

    Re: Quick one(I think!), LEN & IF

    =IF(LEN(A1)>62,1,0)

    --
    Kind regards,

    Niek Otten

    "saybut" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hi,
    >
    > does anyone know if its possible to incorporate the IF and LEN
    > statements,
    >
    > I'm trying to say, IF the field is over 62 characters in Legth, show 1,
    > or show 0 if its under.
    >
    > I tried various, =IF(A1>62,1,0) but that doesn't work, do I need to use
    > the LEN statement somewhere also?
    >
    > Thanks for any help, much appreciated.
    >
    >
    > --
    > saybut
    > ------------------------------------------------------------------------
    > saybut's Profile: http://www.excelforum.com/member.php...fo&userid=5949
    > View this thread: http://www.excelforum.com/showthread...hreadid=523611
    >




  4. #4
    Registered User
    Join Date
    02-09-2004
    Posts
    52
    Ah that's brilliant, thanks.. I didn't realise you need to include the LEN in sperate brackets.

    thanks a lot

  5. #5
    Guest

    Re: Quick one(I think!), LEN & IF

    Hi

    Try this:
    =IF(LEN(A1)>62,1,0)

    Andy.

    "saybut" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > does anyone know if its possible to incorporate the IF and LEN
    > statements,
    >
    > I'm trying to say, IF the field is over 62 characters in Legth, show 1,
    > or show 0 if its under.
    >
    > I tried various, =IF(A1>62,1,0) but that doesn't work, do I need to use
    > the LEN statement somewhere also?
    >
    > Thanks for any help, much appreciated.
    >
    >
    > --
    > saybut
    > ------------------------------------------------------------------------
    > saybut's Profile:
    > http://www.excelforum.com/member.php...fo&userid=5949
    > View this thread: http://www.excelforum.com/showthread...hreadid=523611
    >




+ 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