+ Reply to Thread
Results 1 to 6 of 6

And, or, if, maybe formula?!?!?!

Hybrid View

HannibalSmith And, or, if, maybe... 04-08-2020, 11:56 PM
FDibbins Re: And, or, if, maybe... 04-09-2020, 12:04 AM
HannibalSmith Re: And, or, if, maybe... 04-09-2020, 12:11 AM
Ghozi Alkatiri Re: And, or, if, maybe... 04-09-2020, 12:06 AM
FDibbins Re: And, or, if, maybe... 04-09-2020, 12:07 AM
FDibbins Re: And, or, if, maybe... 04-09-2020, 12:21 AM
  1. #1
    Registered User
    Join Date
    10-09-2019
    Location
    Luton, England
    MS-Off Ver
    365
    Posts
    13

    And, or, if, maybe formula?!?!?!

    Hi all,

    So this is why I'm still up at 04:47 in the morning...

    I'm trying to get a cell to produce a yes or no output to the following question:

    Capture.PNG

    If A1 says Blue and D1 is higher than B1, then say yes in E1, but if A1 says Green and D1 is lower than C1, say Yes, otherwise, say No.

    ...

    I have tried a combination of nested functions, and I can't seem to get the right combination for it to work. Any help anyone has on how I make that happen would be great!! I have attached the s/s of the screenshot above.

    Thanks
    Attached Files Attached Files
    Last edited by HannibalSmith; 04-09-2020 at 12:12 AM.

  2. #2
    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: And, or, if, maybe formula?!?!?!

    Try this...
    =IF(OR(AND(A1="blue",D1>B1),AND(A1="green",D1<C1)),"yes","no")
    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

  3. #3
    Registered User
    Join Date
    10-09-2019
    Location
    Luton, England
    MS-Off Ver
    365
    Posts
    13

    Re: And, or, if, maybe formula?!?!?!

    Voila, I can now sleep. Thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: And, or, if, maybe formula?!?!?!

    =IF(AND(A1="blue",D1>B1),"yess","no")

  5. #5
    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: And, or, if, maybe formula?!?!?!

    Quote Originally Posted by Ghozi Alkatiri View Post
    =IF(AND(A1="blue",D1>B1),"yess","no")
    what about the 2nd set of criteria for GREEN?

  6. #6
    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: And, or, if, maybe formula?!?!?!

    Happy to help and thanks for the feedback

+ 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: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Tags for this Thread

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