+ Reply to Thread
Results 1 to 9 of 9

Help with "if"

  1. #1
    Bob
    Guest

    Help with "if"

    is there a way of inputing say
    =if(a4 is between 6 and 8) so to get a true response and a false
    a4 = say 6.5
    please help

  2. #2
    Registered User
    Join Date
    11-23-2005
    Posts
    5
    Hi,

    The formula below should work -

    =IF((AND(B4>6,B4<8)),"TRUE","FALSE")

    Where B4 is the cell where the number is.


    So what the formula is saying is if B4 is greater than 6 and less than 8 then enter "True", otherwise enter "False".

    This formula will show 6 and 8 as "false". If you want to change it to show 6 and 8 as true change the formula to :

    =IF((AND(B4>=6,B4<=8)),"TRUE","FALSE")



    hope this answers your question

    Steven

  3. #3
    Roger Govier
    Guest

    Re: Help with "if"

    Hi Bob

    =IF(AND(A4>=6,A4<=8),"true response","false response")

    Regards

    Roger Govier


    Bob wrote:
    > is there a way of inputing say
    > =if(a4 is between 6 and 8) so to get a true response and a false
    > a4 = say 6.5
    > please help


  4. #4
    Bob Phillips
    Guest

    Re: Help with "if"

    =AND(A4<=6,A4>=8)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob" <[email protected]> wrote in message
    news:[email protected]...
    > is there a way of inputing say
    > =if(a4 is between 6 and 8) so to get a true response and a false
    > a4 = say 6.5
    > please help




  5. #5
    Bob
    Guest

    Re: Help with "if"

    Thank you

    "Steven_Archer" wrote:

    >
    > Hi,
    >
    > The formula below should work -
    >
    > =IF((AND(B4>6,B4<8)),\"TRUE\",\"FALSE\")
    >
    > Where B4 is the cell where the number is.
    >
    >
    > So what the formula is saying is if B4 is greater than 6 and less than
    > 8 then enter "True", otherwise enter "False".
    >
    > This formula will show 6 and 8 as "false". If you want to change it to
    > show 6 and 8 as true change the formula to :
    >
    > =IF((AND(B4>=6,B4<=8)),\"TRUE\",\"FALSE\")
    >
    >
    > hope this answers your question
    >
    > Steven
    >
    >
    > --
    > Steven_Archer
    > ------------------------------------------------------------------------
    > Steven_Archer's Profile: http://www.excelforum.com/member.php...o&userid=29025
    > View this thread: http://www.excelforum.com/showthread...hreadid=487581
    >
    >


  6. #6
    Bob
    Guest

    Re: Help with "if"

    Thank you

    "Steven_Archer" wrote:

    >
    > Hi,
    >
    > The formula below should work -
    >
    > =IF((AND(B4>6,B4<8)),\"TRUE\",\"FALSE\")
    >
    > Where B4 is the cell where the number is.
    >
    >
    > So what the formula is saying is if B4 is greater than 6 and less than
    > 8 then enter "True", otherwise enter "False".
    >
    > This formula will show 6 and 8 as "false". If you want to change it to
    > show 6 and 8 as true change the formula to :
    >
    > =IF((AND(B4>=6,B4<=8)),\"TRUE\",\"FALSE\")
    >
    >
    > hope this answers your question
    >
    > Steven
    >
    >
    > --
    > Steven_Archer
    > ------------------------------------------------------------------------
    > Steven_Archer's Profile: http://www.excelforum.com/member.php...o&userid=29025
    > View this thread: http://www.excelforum.com/showthread...hreadid=487581
    >
    >


  7. #7
    Bob
    Guest

    Re: Help with "if"

    thank you


    "Roger Govier" wrote:

    > Hi Bob
    >
    > =IF(AND(A4>=6,A4<=8),"true response","false response")
    >
    > Regards
    >
    > Roger Govier
    >
    >
    > Bob wrote:
    > > is there a way of inputing say
    > > =if(a4 is between 6 and 8) so to get a true response and a false
    > > a4 = say 6.5
    > > please help

    >


  8. #8
    Bob
    Guest

    Re: Help with "if"

    thank you

    "Bob Phillips" wrote:

    > =AND(A4<=6,A4>=8)
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Bob" <[email protected]> wrote in message
    > news:[email protected]...
    > > is there a way of inputing say
    > > =if(a4 is between 6 and 8) so to get a true response and a false
    > > a4 = say 6.5
    > > please help

    >
    >
    >


  9. #9
    Dana DeLouis
    Guest

    Re: Help with "if"

    Shorter, but perhaps not as clear:
    =ABS(A4-7)<=1

    --
    Dana DeLouis
    Win XP & Office 2003


    "Bob" <[email protected]> wrote in message
    news:[email protected]...
    > is there a way of inputing say
    > =if(a4 is between 6 and 8) so to get a true response and a false
    > a4 = say 6.5
    > please help




+ 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