+ Reply to Thread
Results 1 to 8 of 8

Need formula for an either-or/both situation

  1. #1
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Need formula for an either-or/both situation

    Could someone please help me with this--

    I need a formula that does the following:

    If either cell A1 or B1 has a value >.94, then I want C1 to show the text "yes". If both A1 and B1 are >.94, then I also want C1 to show the text "yes". If neither A1 nor B1 has
    a value >.94 (that is, if both A1 and B1 are <.94), then I want C1 to show the text "no".
    Thank you.
    Lorbiculous

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Need formula for an either-or/both situation

    Hi Lorbiculous..

    In C1 try this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need formula for an either-or/both situation

    Another slight variation...
    =IF(or(A1>0.94,B1>0.94),"Yes","No")

    Debraj's formula is really good, I just wanted to show how to use the OR() function in this situation
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Need formula for an either-or/both situation

    Debraj Roy,
    Thanks for your response. The formula worked for cases where both A1 and B1 were >0.94, but not for cases when only one of those cells was >0.94. The OR formula worked when either cell or both cells were >0.94. I'm not sure how clearly I explained the problem.
    Thank you again for replying.
    Lorbiculous

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need formula for an either-or/both situation

    Quote Originally Posted by Debraj Roy View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think you want MAX instead of MIN...

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Need formula for an either-or/both situation

    =IF(OR(OR(A1>0.94,B1>0.94),AND(A1>0.94;B1>0.94)),"Yes","No")

  7. #7
    Registered User
    Join Date
    06-28-2013
    Location
    Urbana, Illinois, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Need formula for an either-or/both situation

    THanks, I will try that since MIN didn't work. I used an IF and OR formula suggested by another contributor, which worked, but I like to have different options.

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,653

    Re: Need formula for an either-or/both situation

    =IF(MIN(A1:B1)>0.94,"Yes","No")

    Change it in

    =IF(MAX(A1:B1)>0.94,"Yes","No")
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Replies: 1
    Last Post: 04-10-2009, 10:03 AM
  2. Replies: 4
    Last Post: 10-27-2008, 04:43 AM
  3. #N/A situation
    By bnwash in forum Excel General
    Replies: 5
    Last Post: 07-18-2007, 04:03 AM
  4. Can I use this situation?
    By tonyrice in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2007, 12:57 PM
  5. need help with a If=then situation.
    By FireBrick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2005, 11:06 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