+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting from multiple cells.

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Essex
    MS-Off Ver
    365
    Posts
    63

    Conditional formatting from multiple cells.

    Hi,

    I am trying to create a conditional format but to read to sets of data to determine the colour it will show...

    So, the first line "YES" or "NO" and the second a number.

    If the cell in row 6 shows "YES" then i would like have the number cell to be filled green below 30, orange between 30-49 and red 50 and above.
    If the cell in row 6 shows "NO" then i would like the number cell to be filled green below 20 and red 20 and above.
    If the cell in row 6 shows "N/A" then i would like the number cell to be filled green below 20 and red 20 and above.

    I have attached a mock sheet for you to see what i am talking about.

    I'm not even sure if this is possible...

    Hope you can help me on this one.

    Thanks in advance!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,409

    Re: Conditional formatting from multiple cells.

    Put below CF formula in order:
    Green
    =B7<(20+(B6="YES")*10)
    (Alternative: =OR(AND(B6="YES",B7<30),AND(B6<>"YES",B7<20))
    Orange
    =AND(B6="YES",B7<50)
    Red
    =B7>=(20+(B6="YES")*30)
    Quang PT

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Conditional formatting from multiple cells.

    You should be able to do it with these formatting rules

    all formatted to the following range =$B$7:$R$7

    =AND(B$6<>"YES",B$7>=20) RED
    =AND(B$6<>"YES",B$7<20) GREEN
    =AND(B$6="YES",B$7<30) GREEN
    =AND(B$6="YES",B$7>30,B$7<50) ORANGE
    =AND(B$6="YES",B$7>=50) RED

    example attached
    Happy with my advice? Click on the * reputation button below

+ 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. Conditional formatting from multiple cells
    By Jumpingbeans_8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2017, 01:05 PM
  2. [SOLVED] Conditional Formatting over multiple cells with multiple criteria validator
    By effendrew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-31-2015, 05:05 PM
  3. Conditional Formatting over multiple cells
    By PetrockAmmoTech in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-23-2015, 07:59 AM
  4. [SOLVED] Conditional formatting multiple cells based on multiple cells
    By jhuvba in forum Excel General
    Replies: 2
    Last Post: 05-18-2015, 12:19 PM
  5. [SOLVED] Conditional Formatting based on multiple strings in multiple cells
    By lily_ruiz_06 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2013, 04:23 PM
  6. Conditional formatting in multiple cells
    By EsKay! in forum Excel General
    Replies: 3
    Last Post: 07-02-2012, 10:02 PM
  7. Conditional Formatting multiple cells
    By mc515 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-04-2008, 06: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