+ Reply to Thread
Results 1 to 2 of 2

Formula to return the name of a color based on criteria

  1. #1
    Registered User
    Join Date
    07-27-2021
    Location
    Baltimore
    MS-Off Ver
    2102
    Posts
    1

    Formula to return the name of a color based on criteria

    Hi all,



    I have a sheet that contains fields for "Preparer Due Date" and "Preparer Status" and am trying to add in the following logic to a formula:



    Return "Blue" if status is "completed"

    Return "Green" if task is in process and is due more than 3 days away

    Return "Yellow" if task is in process and is due within the next 3 days

    Return "Grey" if task is not started and is due more than 3 days away

    Return "Red" if task not started or in process that are past due



    Preparer Due Date Preparer Status Formula
    7/1/2021 Not Started Gray
    7/1/2021 In Process Red
    7/1/2021 Completed Blue
    7/29/2021 Not Started Yellow
    7/29/2021 In Process Yellow
    7/29/2021 Completed Blue
    8/10/2021 Not Started Red
    8/10/2021 In Process Red
    8/10/2021 Completed Blue



    Thanks in advance!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,379

    Re: Formula to return the name of a color based on criteria

    Welcome to the forum.

    YourOffice version is MS365 - 2102 is just a release number. Please update your profile.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Formula that turns cell a color based on criteria
    By NDmad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2016, 12:30 PM
  2. [SOLVED] Formula to return value based on two criteria
    By marks9172 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2015, 02:52 PM
  3. Help with a formula to look up/return based on 2 criteria
    By Choppo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 09:48 PM
  4. [SOLVED] Formula to return specified value based on criteria
    By adriam25 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-23-2014, 12:39 AM
  5. Formula to return specified value based on criteria
    By adriam25 in forum Excel General
    Replies: 8
    Last Post: 09-07-2014, 06:21 AM
  6. [SOLVED] Formula to Return ID based on Multiple Criteria
    By boldcode in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 02:54 PM
  7. Change a cell's color based on return value of a formula
    By Gee-off in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2005, 10:10 AM

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