+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting to apply to two cells

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    reading
    MS-Off Ver
    2010
    Posts
    32

    Conditional Formatting to apply to two cells

    I have a table that I have manually created, which has Yes/No answers.

    I need to apply the conditional formatting to the cells to show if it "Yes" and "Yes" = Green, "Yes" and "No" = Amber, "No" and "No" = Red.

    I thought I had created it and applied it to the whole table but it didn't seem to work (for example, I used =AND(E3=”Yes”, F3 =”Yes”) to make the two cells green).

    Could anyone suggest a different way to do this?

    Do we have this? Signed by customer?
    No........................No
    Yes........................No
    Yes........................Yes


    Thanks,
    Claire

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,130

    Re: Conditional Formatting to apply to two cells

    hi Claire, the $ sign matters. in case you have done any steps wrong, i'll go through the whole process. select the range you want to apply to (eg E3:F10)
    go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =AND($E3=”Yes”,$F3 =”Yes”)

    this means that in E3, it compares E3 & F3. it then copies the formula over to F3. but because i use the dollar signs, it still compares column E & F. your formula would cause it to become:
    =AND(F3=”Yes”, G3 =”Yes”)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX, 365 for windows, Windows 10 Insider
    Posts
    6,001

    Re: Conditional Formatting to apply to two cells

    Sorry, had open before benishiryo posted

    try
    =AND($E3=”Yes”, $E3 =”Yes” and copy to all the cells needed

    did you mean to compare E with F in your example ?

    see attached
    Attached Files Attached Files
    Last edited by etaf; 01-25-2013 at 08:28 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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