+ Reply to Thread
Results 1 to 9 of 9

Excel If Function

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Excel If Function

    What's the function if I wanted to say if cell 1 is greater than cell 2 AND if cell 1 is less than cell 3, In Range, Out of range?

    Thank yoU!
    Last edited by NBVC; 04-06-2009 at 08:02 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel If Function

    =IF(AND(A1>A2,A1<A3),"In Range","Out of range")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Excel If Function

    It's not working: Cell 1= 16, cell 2=17.50 cell 3=32.50.

    It's saying it is in range when 16 is less than 17.

    what am i doing wrong?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel If Function

    Replace A1, A2 and A3 with your actual cell reference (locations of Cell 1, Cell 2 and Cell 3, respectively).... It should say "Out of Range"

  5. #5
    Registered User
    Join Date
    04-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Excel If Function

    This is what I have:

    =IF(AND(N43<$I$43,N43<$J$43),"in range","out of range")

    I43=17
    J43-32

    N43=16

    It's saying 16 is in the range of 17 and 32 which isn't correct.

    Thank you for helping.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel If Function

    Per your original request... shouldn't it be?

    =IF(AND(N43>$I$43,N43<$J$43),"in range","out of range")

  7. #7
    Registered User
    Join Date
    04-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Excel If Function

    Sorry the first request was wrong.

    N43 is referencing against two cells.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel If Function

    I understand that but if you want to check if 16 is between 17 and 32

    then

    =IF(AND(N43>$I$43,N43<$J$43),"in range","out of range")

    is the formula....

  9. #9
    Registered User
    Join Date
    04-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Excel If Function

    Thank you! I must have mis keyed the arrow.

+ 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