+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting based on several other cells

Hybrid View

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    15

    Conditional formatting based on several other cells

    Hi, Im trying to do some conditional formatting based on certain cells. I'm limited to what I can show so hopefully this is enough to go on.

    The logic I need is:

    Show green if(and...N2=yes, o2=0,p2=0,q2=0, r2/s2/t2 all equal g2....Show yellow if not all the previous are true but x2=yes....otherwise show red?

    Is this possible? Any help would be appreciated. thanks!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting based on several other cells

    set up a couple of rules using formulas in conditional formatting

    Show green if(and...N2=yes, o2=0,p2=0,q2=0, r2/s2/t2 all equal g2....Show yellow if not all the previous are true but x2=yes
    =AND( N2="YES", O2=0, P2=0, Q2=0, R2="G2", S2="G2", T2="G2")
    for green

    new rule
    =AND( N2="YES", O2=0, P2=0, Q2=0, R2="G2", S2="G2", T2="G2", X2="YES")
    for Yellow

    So any condition is RED - even if blank cells ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-14-2016
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    15

    Re: Conditional formatting based on several other cells

    Thanks for the quick response!

    On second thought I'd only like to format for green and yellow.I'll leave all others blank

    The formula as is didnt' work for me..for simplicity lets try this logic

    Show green if(and...N2=yes, r2/s2/t2 all equal g2 (cell reference not value)....Show yellow if not all the previous are true but x2 (cell reference not value)=yes.

    Would I need to use $ for anything in the formula?

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting based on several other cells

    try
    =AND( N2="YES", O2=0, P2=0, Q2=0, R2=G2, S2=G2, T2=G2)

    i thought G2 was text not a cell

    dont understand this
    .Show yellow if not all the previous are true but x2 (cell reference not value)=yes.

  5. #5
    Registered User
    Join Date
    01-14-2016
    Location
    Houston, Tx
    MS-Off Ver
    2010
    Posts
    15

    Re: Conditional formatting based on several other cells

    Thanks for the help! I failed to mention I needed to copy the formatting down 365 rows, so I added a $ before each cell reference and it worked.

    For the yellow. I just created a second condition that said if cell x2=yes then format yellow.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting based on several other cells

    excellent glad it worked OK

    thanks for the rep

+ 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 for a range of cells based on data from two cells
    By Tindomerel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2014, 05:09 AM
  2. [SOLVED] Conditional Formatting for cells based on dates in subsequent cells
    By bcmilne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2014, 10:23 AM
  3. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  4. Replies: 5
    Last Post: 08-06-2013, 02:13 PM
  5. Replies: 5
    Last Post: 07-12-2013, 01:15 AM
  6. Replies: 4
    Last Post: 02-25-2013, 06:43 PM
  7. Replies: 4
    Last Post: 01-06-2012, 05:07 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