+ Reply to Thread
Results 1 to 4 of 4

How can i make this work within an IF statement: (41<=Cell<=46)

  1. #1
    velopoav
    Guest

    How can i make this work within an IF statement: (41<=Cell<=46)

    Everytime i type that condition into an if statement it doesnt calculate the
    number correctly... what am i doing wrong?

  2. #2
    Dave Peterson
    Guest

    Re: How can i make this work within an IF statement: (41<=Cell<=46)

    One way:
    =if(and(a1>=41,a1<=46),"it's between","outside")



    velopoav wrote:
    >
    > Everytime i type that condition into an if statement it doesnt calculate the
    > number correctly... what am i doing wrong?


    --

    Dave Peterson

  3. #3
    Niek Otten
    Guest

    Re: How can i make this work within an IF statement: (41<=Cell<=46)

    You don't tell us what formula you used.
    But probably you mean something like

    =IF(AND(A1>=41,A1<=46),"yes","no")

    --

    Kind Regards,

    Niek Otten

    Microsoft MVP - Excel

    "velopoav" <[email protected]> wrote in message
    news:[email protected]...
    > Everytime i type that condition into an if statement it doesnt calculate
    > the
    > number correctly... what am i doing wrong?




  4. #4
    John Mansfield
    Guest

    RE: How can i make this work within an IF statement: (41<=Cell<=46)

    You can also use boolean conditions like:

    =(A1>1) * 1 -> checks one condition

    =(A1>2) * (A1<8) * 1 -> both conditions must be true

    However, this type of conditioning does not work with text.

    A more detailed explanation can be found here:

    http://www.pdbook.com/index.php/exce...itch_formulas/

    ----
    Regards,
    John Mansfield
    http://www.pdbook.com



    "velopoav" wrote:

    > Everytime i type that condition into an if statement it doesnt calculate the
    > number correctly... what am i doing wrong?


+ 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