+ Reply to Thread
Results 1 to 7 of 7

Formula to Return Yes based on a few scenarios.

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Lancashire
    MS-Off Ver
    2010
    Posts
    15

    Question Formula to Return Yes based on a few scenarios.

    NOW SOLVED. Thank you.
    Test for formula.xlsx
    Hi all,

    I have a spread sheet for student grades, the subjects are split into Buckets.
    I need a Column to say Yes or No based on this Scenario.

    I currently have a column returning yes for the following.
    1. Is bucket 1 complete
    2. Is Bucket 2 complete
    3. Is bucker 3 complete
    4. Does bucket 2 spares added with bucket 3 make bucket 3 complete.

    in a new column I need to return yes or no based on this.
    (using the list above).

    Scenario 1
    1. returns NO - column X Returns no.

    Scenario 2.
    1. Returns Yes
    2. Returns No - Column X Returns no.

    Scenario 3.
    1. Returns Yes
    2. Returns Yes
    3. Returns yes - Column X Returns Yes

    Scenario 4.

    1. Returns Yes
    2. Returns Yes
    3. Returns No - Then ask if -
    4 Returns yes - if 4 returns yes column x returns Yes. if No, column X returns No.

    Hope this makes sense

    Thanks in advance.
    Last edited by JonWilf; 01-21-2016 at 08:41 AM. Reason: Now Solved

  2. #2
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Re: Formula to Return Yes based on a few scenarios.

    I'm not sure I understand what you mean. In the forum if you click "Go Advanced" you can click on attachments and upload an example. I've uploaded an example based on what I think you mean?

    test1.xlsx

  3. #3
    Registered User
    Join Date
    12-04-2015
    Location
    Lancashire
    MS-Off Ver
    2010
    Posts
    15

    Re: Formula to Return Yes based on a few scenarios.

    I have added in some example data, I have named the columns according to what I put above. Hope this makes more sense

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Formula to Return Yes based on a few scenarios.

    Try

    A2=IF(TRIM(B2)="NO","NO",IF(AND(TRIM(B2)="YES",TRIM(C2)="NO"),"NO",IF(AND(TRIM(B2:D2)="YES"),"YES",IF(AND(TRIM(B2:E2)="YES"),"YES","NO")))) with CRTL+SHIFT+ENTER and drag down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Formula to Return Yes based on a few scenarios.

    Try this formula in A2 and down:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    12-04-2015
    Location
    Lancashire
    MS-Off Ver
    2010
    Posts
    15

    Re: Formula to Return Yes based on a few scenarios.

    Just tested it with our data and this works perfect.

    Thank you very much

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Formula to Return Yes based on a few scenarios.

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools link above your first post. Hope that you have a good day.

+ 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. Nested IF Returning False - Need to Return True for Three Scenarios
    By rhelmer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 05:50 PM
  2. [SOLVED] Various scenarios based on selection criteria
    By Harlequin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-24-2013, 06:56 AM
  3. VBA to display scenarios based on Combo Box Selection
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2012, 05:37 AM
  4. Charting time series based on different scenarios
    By _keith in forum Excel General
    Replies: 7
    Last Post: 01-08-2011, 06:41 AM
  5. Excel 2007 : Need formula based on multiple scenarios
    By LAB2007 in forum Excel General
    Replies: 4
    Last Post: 07-08-2010, 04:07 PM
  6. Conditional Format based on 2 scenarios
    By NotaExpert in forum Excel General
    Replies: 1
    Last Post: 08-07-2007, 06:30 PM
  7. Return multiple scenarios
    By Casey D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2006, 05:50 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