+ Reply to Thread
Results 1 to 8 of 8

How to put contradictory conditions in same cell

  1. #1
    Registered User
    Join Date
    06-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    24

    How to put contradictory conditions in same cell

    Hi,
    Please guide me suitably on following:

    My column A is going to have values like 1016 in A1, 503 in A2, 1004 in A3, 500 in A4 so on. In column B (in B1), I want to put both the following two
    statements together.

    STATEMENT ONE : A1 is greater than 1015 and lesser than 1005, if true then A1, if false then zero.)
    STATEMENT TWO : A1 is greater than 502 and lesser than 500, if true then A1, if false then zero.)

    Please help.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to put contradictory conditions in same cell

    How can any number be both greater than 1015 and less than 1005? Ditto with 502 & 500

    Are those typos and you mean greater than 1005 and less than 1015, & > 500 <502

    If that was a typo what about numbers > 1015 and > 502
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to put contradictory conditions in same cell

    it can be done but you need to give answers statement 1 can not be true as an and >1015 and < 1005 is impossible so is it an or? or are your signs the wrong way round?

    If say the value is 501 what should be the answer? the second statement is false but the first is true

    do you mean the below


    if(or(and(a1<=1015, a1>=1005),and(a1<=502,a1>=500)),0,a1)

  4. #4
    Registered User
    Join Date
    06-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    24

    Re: How to put contradictory conditions in same cell

    Thanks for picking up the type. Sorry.

  5. #5
    Registered User
    Join Date
    06-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    24

    Re: How to put contradictory conditions in same cell

    Sorry for the incorrect posting. It was just due to oversight.
    Thanks for the help. Solved my problem. Thanks a lot.

  6. #6
    Registered User
    Join Date
    06-27-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    24

    Re: How to put contradictory conditions in same cell

    Hello...since last two hours I was trying to solve one more issue, following the last given guidance.
    However, I couldn't solve the problem. Please help.

    I want to put formula in C1 as under:
    IF A1 is lesser than 91, greater than 96.8 and B1 is Zero, then D1.

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to put contradictory conditions in same cell

    you are back to your confusing conditions you need to state and or or in your questions

    the answer for what you asked is =if(and(a1<91, a1>96.8,b1=0),d1,"") but this can not be true

    perhaps if(and(or(a1<91, a1>96.8),b1=0),d1,"")

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to put contradictory conditions in same cell

    ...or perhaps

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but as davsth says it all depends what you mean since the question as put is confusing.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help for IF conditions with multiple Conditions (scenario more than 5 conditions)
    By meily_o26 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2019, 02:13 AM
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. Replies: 2
    Last Post: 11-28-2014, 03:43 PM
  4. Replies: 8
    Last Post: 06-29-2014, 10:01 AM
  5. [SOLVED] Confirmation Popup Window on Cell Change & Cell Delete. (3 conditions)
    By smk224 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2013, 02:51 PM
  6. If any cell across many columns has a contradictory sign to any other
    By Zarathrustra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 12:54 PM
  7. Replies: 3
    Last Post: 07-25-2012, 07:54 AM

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