+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting Issue

  1. #1
    Registered User
    Join Date
    01-01-2016
    Location
    Attleboro, Massachusetts
    MS-Off Ver
    Office for Mac - 2011
    Posts
    2

    Conditional Formatting Issue

    Hello,

    I hope all is well. I am working on a blood pressure log, and have one column (Column D) for the top number, and one column (Column E) for the bottom number. I am trying to use conditional formatting to highlight both cells to indicate whether the values entered are normal (green), prehypertension (yellow), stage 1 hypertension (orange), and stage 2 hypertension (red).

    I can get it so that each cell is highlighted based on the value of that cell alone, however, I would like both cells (D and E) to be highlighted based on the following criteria:

    - Green if Column D is less than 120 AND Column E is less than 80.
    - Yellow if Column D is between 120-139 OR Column E is between 80-89.
    - Orange if Column D is between 140-159 OR Column E is between 90-99.
    - Red if Column D is greater than or equal to 160 than 120 OR Column E is greater than or equal to 100.

    So if the blood pressure entered is 140/70, I want both cells (D and E) highlighted orange, and not just D (140) highlighted orange and E (70) highlighted green.

    When using conditional formatting, is it possible to do IF/AND or IF/OR for specific ranges?

    Any help would be greatly appreciated. Looking forward to hearing your advice!

    Many thanks,

    Tom
    Last edited by skyhawk98795; 01-01-2016 at 09:57 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting Issue

    Yes you can do this, you must lit your conditions in the order of importance and check off the STOP IF TRUE option.

    Rule 1 - RED
    =OR(D2>=160, E2>=100)

    Rule 2 - ORANGE
    =OR(D2>=140, E2>=90)

    Rule 3 - YELLOW
    =OR(D2>=120, E2>=80)

    Rule 4 - GREEN
    =AND(D2>0, D2<120, E2>0, E2<80)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-01-2016
    Location
    Attleboro, Massachusetts
    MS-Off Ver
    Office for Mac - 2011
    Posts
    2

    Re: Conditional Formatting Issue

    This worked perfectly -- thanks so much!

+ 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] Conditional Formatting Issue
    By jdm1199 in forum Excel General
    Replies: 5
    Last Post: 09-02-2015, 12:36 PM
  2. [SOLVED] Conditional formatting issue
    By Hawkmoth1 in forum Excel General
    Replies: 8
    Last Post: 03-23-2015, 05:41 PM
  3. Custom formatting issue using conditional formatting
    By wrongway15 in forum Excel General
    Replies: 2
    Last Post: 07-13-2014, 03:18 PM
  4. [SOLVED] Conditional Formatting Issue
    By nikolasm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-12-2013, 01:34 PM
  5. Conditional Formatting Issue
    By Gavin Ling in forum Excel General
    Replies: 3
    Last Post: 05-12-2007, 10:13 AM
  6. conditional formatting issue
    By associates in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2006, 03:45 AM
  7. [SOLVED] conditional formatting issue
    By QUESTION-MARK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 08:10 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