+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Conditional formatting

    Hey Guys,

    I'm stuck using 2003. Job won't upgrade. As a result I only can have 3 conditions for for conditional formatting. I have for example
    if Cell a1 = 1 then go green
    if Cell a1 = 2 then go orange
    if Cell a1 = 3 then go red

    Is there a formula like the if function that says =if(or(a1=1,a1=0),Go green Basically get 2 for 1?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Conditional formatting

    It's been ages since I've used 2003.

    First of all reverse the logic.
    A1 >= 3 (Red)
    A1 >= 2 (Orange)
    A1 >= 0 (Green)

    Or I still think you can use the Use formula option.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Conditional formatting

    Sorry bad example on my part. Instead of numbers it's words
    A1 = not proceeding (red)
    A1 = in progress (orange)
    A1 = started or A1 = completed (green)
    For example.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Conditional formatting

    I think you can still use the formula option.

    =A1 = "NOT Proceeding" -> Red
    =A1 = "In Progress" -> Orange
    =OR (A1 = "Started", A1 = "Completed") -> Green

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting

    Try this...

    Goto the menu Format>Conditional Formatting

    Select the Formula Is option

    Enter this formula in the box on the right:

    =A1="not proceeding"

    Click the Format button
    Select the desired style(s)

    Click the Add button

    Select the Formula Is option

    Enter this formula in the box on the right:

    =A1="in progress"

    Click the Format button
    Select the desired style(s)

    Click the Add button

    Select the Formula Is option

    Enter this formula in the box on the right:

    =OR(A1="started",A1="completed")

    Click the Format button
    Select the desired style(s)
    OK out
    Last edited by Tony Valko; 05-24-2016 at 05:54 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Conditional formatting

    Thanks a mil guys but I'm getting an error on the last formula saying that "you may not use unions, intersections, or array constants for conditional formatting criteria". Looks as though it cannot be done.

  7. #7
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Conditional formatting

    Just FYI

    I found a workaround. I set up a new column saying if(or(A1="started",A1="completed"),"yes,"")

    And changed the conditional format to
    a1=not progressing (red)
    a1=inprogress (orange)
    b1=Yes (green) which will work for both started and completed.
    Last edited by Nitro2481; 05-25-2016 at 08:39 AM.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting

    Quote Originally Posted by Nitro2481 View Post
    Thanks a mil guys but I'm getting an error on the last formula saying that "you may not use unions, intersections, or array constants for conditional formatting criteria". Looks as though it cannot be done.
    =OR(A1="started",A1="completed")

    Works just fine for me in all the versions of Excel I have including Excel 2002.

    You will get that message if you try using the formula like this:

    =OR(A1={"started","completed"})

  9. #9
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Conditional formatting

    I typed it exactly as you suggested. Definitely didn't use the funny brackets.

+ 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: 9
    Last Post: 03-07-2016, 10:39 AM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 PM

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