+ Reply to Thread
Results 1 to 5 of 5

Condional Format using a Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    35

    Condional Format using a Formula

    Hi All, I am developing a spreadsheet that tracks whether a person has completed certain tasks.

    Spreadsheet I have is as follows:

    Cell A1 will be coded to change colour dependant on cells A2 and A3

    If A2 and A3 are blank then A1 will be RED

    If A2 contains an "X" and A3 is blank then A1 will be ORANGE- or - If A2 is Blank and A3 contains an "X" then A1 will be ORANGE

    If both A2 and A3 contains "X"'s the A1 will become GREEN

    Any advice will be appreciated

    Thanks
    Sandy

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,800

    Re: Condional Format using a Formula

    using Conditional formatting

    Select A1 and then enter these 3 new rules with "Use a formula ...." option

    for 1. =AND(A2="",A3="") Set FILL to RED

    for 2: =OR(AND(A2="",A3="x"),AND(A2="x",A3="")) set FILL to orange

    For 3: =AND(A2="x",A3="x") set FILL to GREEN

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Condional Format using a Formula

    Hi,

    Use Conditional Formatting, with the following formulae:
    Red:
    Formula: copy to clipboard
    =AND(A2="",A3="")

    Orange:
    Formula: copy to clipboard
    =OR(AND(A2="X",A3=""),AND(A2="",A3="X"))

    Green:
    Formula: copy to clipboard
    =AND(A2="X",A3="X")


    To do this, select 'Conditional Formatting' from the 'Styles' section of the Home ribbon. Select 'New Rule' and then 'Use a formula to determine which cells to format'. Type one of the formulae above into the box below, format it as required (Red/Orange/Green fill) then repeat for the other two.

    Hope that helps.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.


    Edit: this is the same as JohnTopley's post, just more long-winded!
    Last edited by Aardigspook; 07-20-2015 at 09:12 AM. Reason: Acknowledge previous post

  4. #4
    Registered User
    Join Date
    05-28-2013
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Condional Format using a Formula

    Thanks for the help exactly what I was needing

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Condional Format using a Formula

    You're welcome, glad we could help.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

+ 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] Condional Formatting...maybe
    By bdrilling33 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-23-2014, 09:56 AM
  2. Condional formating with comparison
    By i82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-09-2013, 01:58 AM
  3. Condional formating cells
    By boll55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2012, 04:28 PM
  4. Condional highlight using VBA
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 09:20 AM
  5. Condional Formatting
    By alex1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2007, 09:33 AM
  6. [SOLVED] cannot delete condional formatting
    By Robert in forum Excel General
    Replies: 1
    Last Post: 09-28-2005, 03:05 PM
  7. Condional formatting
    By maccaz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-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