+ Reply to Thread
Results 1 to 4 of 4

Formula to check two cells greater than one other cell

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Anytown, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Formula to check two cells greater than one other cell

    I am using this formula to track people who are lowering their blood pressure by systolic number, over three cells in the same row
    (H2-1st#,N2-2nd#,T2-3rd#). My problem is, if both N2 and T2 are not less than H2 i do not get a "1" for the answer. i need the formula to give me a "1" if either one (N2,T2) or both are less than H2.

    Thanks, in advance for your help.
    Last edited by FIFTYFINGERS; 11-23-2012 at 02:51 PM. Reason: solved

  2. #2
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: i am using =IF(AND($H2>$N2,$H2>$T2),"1","0") i need "1" if either one (N2,T2) or both

    Without seeing a sample worksheet I can only guess at what you're working with. Will this work for you?

    =IF(OR($T2<$H2,$N2<$H2),"1","0")

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    Anytown, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: i am using =IF(AND($H2>$N2,$H2>$T2),"1","0") i need "1" if either one (N2,T2) or both

    Thanks Steve! it looks like it worked.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula to check two cells greater than one other cell

    Try using OR() rather than AND(), why are your numbers 0 & 1 in quotes? Do you want text returned?

    This returns numbers ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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