+ Reply to Thread
Results 1 to 6 of 6

How to Change the Colour of a Cell based on Specific Data of Multiple Cells

  1. #1
    Registered User
    Join Date
    03-10-2021
    Location
    Fort Erie, Canada
    MS-Off Ver
    Microsoft Office Home and Business 2019
    Posts
    3

    How to Change the Colour of a Cell based on Specific Data of Multiple Cells

    I am looking for help on how to write the following if statement and incorporate into the attached spreadsheet (onto 2nd tab)

    If D6 to D14 = yes and E6 to E14 = yes then C5 = green

    Thanks in advance
    Attached Files Attached Files
    Last edited by tando; 03-10-2021 at 05:51 PM. Reason: Title Change

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Statement Help

    https://exceljet.net/formula/if-this-and-that

    https://www.extendoffice.com/documen...ot.html#if_and

  3. #3
    Registered User
    Join Date
    03-10-2021
    Location
    Fort Erie, Canada
    MS-Off Ver
    Microsoft Office Home and Business 2019
    Posts
    3

    Re: If Statement Help

    Thank you however I have a very basic understanding of Excel, these help sheets really do not make sense to me.

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Statement Help

    .
    This will seem difficult at first but after a few tries on your own I am certain you will learn a new tool for your projects.

    What you are looking for is CONDITIONAL FORMATTING. That is located in the MENU BAR at the top. You can Google EXCEL CONDITIONAL FORMATTING to see tons of examples and learn.

    Open the attached workbook and follow the directions :

    Home Tab
    Conditional Formatting
    Manage Rules


    Click top rule in small window at bottom
    Click EDIT RULE (do not change anything !)
    The rule states : =COUNTIF(D6:E14,"No")
    The PREVIEW is WHITE (formatted to be white)

    So if there is a least one NO in all those cells, C5 will be WHITE


    Click on the botton rule (do not change anything !)
    The rules states : =COUNTIF(D6:E14,"Yes")
    The PREVIEW is GREEN (formatted to be green)

    So if all those cells show Yes, C5 will be GREEN
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-10-2021
    Location
    Fort Erie, Canada
    MS-Off Ver
    Microsoft Office Home and Business 2019
    Posts
    3

    Re: If Statement Help

    Thank you, will play around with this and see if I can work it out.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: If Statement Help

    Administrative Note:

    tando Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Dave

+ 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] IF Statement with Multi-Criteria Statement inside a Data Validation List
    By dharvey1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2020, 09:10 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

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