+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting on Multiple Cells

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Cool Conditional Formatting on Multiple Cells

    Hello all. I have made a rather simple spreadsheet where I wish to use some conditional formatting.

    Here is the setup:

    Cell A3 contains a vehicle number.
    Cell B3 contains the type of vehicle.
    Cell C3 contains a "YES" or "NO" for a spare key.
    Cell D3 contains a "YES" or "NO" for a safety light.
    Cell E3 contains a "1" if Cell's C3 & D3 BOTH have a "YES", and a "0" if they both contain a "NO".

    The conditional formatting that I am using turns cells A3 to D3 green if cell E3 has a "1", and no change if it contains a "0".

    The issue is that I have successfully written the formula to do this for cells A3 to D3, but have been unable to "Copy" and "Paste" (using the Format Painter of course) the formatting to the rest of the spreadsheet. The only way that I have had any luck was to re-write the formula on each line.

    Does anyone know what I might be doing wrong here???

    Thanks all!
    Last edited by dgaletar; 05-02-2016 at 03:13 PM. Reason: To adhere to the forum rules

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Yet Another Conditional Formatting Issue!?!

    title updated
    Last edited by protonLeah; 05-02-2016 at 10:19 PM.
    Ben Van Johnson

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Yet Another Conditional Formatting Issue!?!

    It is better to "use a formula" in setting the CF conditions, as you have more control over what is happening. In this case I would suggest that you select all the cells with an existing CF rule (assume this to be from A3 to E_whatever), click on CF, and then Delete existing rules from the selected cells. Then, with them still selected, click on CF | New Rule | Use a formula..., and put this formula in the dialogue box:

    =$E3=1

    Then click the Format button and Fill tab and choose Green, then OK your way out. Excel will adjust the cell references in the formula to suit the cells that were selected, so in this case the column (E) will remain unchanged, but the row number (3) will change for cells on other rows.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting on Multiple Cells

    Thank you Pete_UK! That worked GREAT!!! The only issue is that I am having to do each row individually, as I already have CF in other cells. Is there a way to do the formula on a range of cells instead???

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional Formatting on Multiple Cells

    Can you set up the range for that when yo create the rule?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Conditional Formatting on Multiple Cells

    Quote Originally Posted by dgaletar View Post
    Thank you Pete_UK! That worked GREAT!!! The only issue is that I am having to do each row individually, as I already have CF in other cells. Is there a way to do the formula on a range of cells instead???
    Click on cell A3, then Conditional Formatting | Manage Rules and then you should see the rule that you have set up and in the Applies to box you can see the range this applies to (it might just be A3 to E3). You can adjust this range e.g. to A3:E100, and then click OK.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting on Multiple Cells

    Hey there Pete_UK, I tried changing the range like you suggested, but when the first row changed, all of the rows changed.

    Your thoughts Sir...

  8. #8
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting on Multiple Cells

    I can set up the individual range, but no additional rows. :-(

  9. #9
    Registered User
    Join Date
    07-15-2013
    Location
    escernme 196
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Conditional Formatting on Multiple Cells

    Re: Conditional Formatting on Multiple Cells
    Can you set up the range for that when yo create the rule?
    I can set up the individual range, but no additional rows. :-(

+ 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 Hawkmoth1 in forum Excel General
    Replies: 8
    Last Post: 03-23-2015, 05:41 PM
  2. Custom formatting issue using conditional formatting
    By wrongway15 in forum Excel General
    Replies: 2
    Last Post: 07-13-2014, 03:18 PM
  3. VBA Conditional Formatting Issue
    By maddog9486 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2014, 11:21 AM
  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 bumperbg in forum Excel General
    Replies: 0
    Last Post: 07-06-2011, 04:19 AM
  6. Conditional Formatting Issue
    By Gavin Ling in forum Excel General
    Replies: 3
    Last Post: 05-12-2007, 10:13 AM
  7. conditional formatting issue
    By associates in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2006, 03:45 AM

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