+ Reply to Thread
Results 1 to 3 of 3

if statement for overall status

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Fort Worth, TX USA
    MS-Off Ver
    2013
    Posts
    4

    if statement for overall status

    I have several variables (12) that all return either "GREEN", "GREY", "YELLOW", or "RED". I need a formula to return the following:

    If all are either "GREY" or "GREEN" then "GREEN"
    If any are "RED" then "RED"
    IF none are "RED" and any are "YELLOW" then "YELLOW"

    Can anyone help? Thanks

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: if statement for overall status

    Hello,

    Assuming your variables are "text" in A1:A12, try this formula:
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,180

    Re: if statement for overall status

    Or try this ...

    =LOOKUP(2,1/COUNTIF($A$1:$A$12,{"GREY","GREEN","YELLOW","RED"}),{"GREEN","GREEN","YELLOW","RED"})

+ 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. IF Condition statement for Final Status
    By Rushendra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2016, 04:50 AM
  2. Macro to Track Prospect Status and Date of Status Change
    By zainfidel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2016, 02:16 PM
  3. Replies: 3
    Last Post: 09-11-2014, 04:32 PM
  4. arrange data to show different billing status and customer status
    By applesandpears in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-29-2012, 05:57 PM
  5. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  6. Replies: 1
    Last Post: 06-01-2006, 01:15 PM
  7. [SOLVED] How do I retain blank cell status in an IF statement?
    By HWI in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-06-2005, 03:05 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