+ Reply to Thread
Results 1 to 5 of 5

Positive or Negative Logic

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    Westfield, MA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Positive or Negative Logic

    Need help with the following scenario.

    Cell A1 and B1 are numbers,
    I need a formula in C2 that basically says,

    If both are positive numbers then “True”
    If both are negative numbers then “True”
    If one is positive and one is negative “False”

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Positive or Negative Logic

    tRY.

    =IF(AND(A1>0,B1>0),TRUE,FALSE))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-24-2012
    Location
    Westfield, MA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Positive or Negative Logic

    The above formula on works if both numbers are positive. I need:

    If both numbers are positive "True"
    If both numbers are negative "True"
    If one number is negative and one is positive "False"

    thanks

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Positive or Negative Logic

    Try
    Please Login or Register  to view this content.
    no functions needed

  5. #5
    Registered User
    Join Date
    09-24-2012
    Location
    Westfield, MA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Positive or Negative Logic

    Simple and easy....thanks

+ 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