+ Reply to Thread
Results 1 to 6 of 6

Apply conditional formatting from a cell to a range

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Apply conditional formatting from a cell to a range

    An equipment status worksheet

    If the status is "SHOP" I need to highlight the cells in four columns that are blank. That prompts the user to put in the missing information.

    I created the rule based on this formula
    Please Login or Register  to view this content.
    And voila the blank cell is hot pink

    Problem is that if I type into M2 I want the cell to return to the default white color and I need to copy that rule to the other columns.

    I tried using the format painter on the remaining cells and it didn't work.

    For some reason Conditional Formatting messes with my head.

    What have I done wrong?

  2. #2
    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,926

    Re: Apply conditional formatting from a cell to a range

    MAybe just...
    =and(k2="shop",m2<>"")

    1st, highlight the entire range you need this apply to
    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

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Apply conditional formatting from a cell to a range

    Don't use the format painter to apply conditional formatting - it can be hit and miss. Instead, use the dialog itself to tell Excel which range or ranges to apply it to. It's not as intuitive as it could be.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Apply conditional formatting from a cell to a range

    Quote Originally Posted by FDibbins View Post
    MAybe just...
    =and(k2="shop",m2<>"")

    1st, highlight the entire range you need this apply to
    Quote Originally Posted by AliGW View Post
    Don't use the format painter to apply conditional formatting - it can be hit and miss. Instead, use the dialog itself to tell Excel which range or ranges to apply it to. It's not as intuitive as it could be.
    I appreciate both of you taking the time to help me. I guess that format painter is like the rest of us, imperfect ;-)

    After reading y'alls comment I began to wonder why I needed to get it done with one rule. That led to the solution for my situation. I put the pic here so that down the road if someone has a similar issue it might help them.

    Conditional.PNG

  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,926

    Re: Apply conditional formatting from a cell to a range

    Thanks for the feedback

    If that works for you, thats great Just a quick note that the ranges for the 2 rules dont match, and also that it is advisable not to use full column ranges in CF, it will start to slow your file down

  6. #6
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Apply conditional formatting from a cell to a range

    Yep. I saw that after posting the pic. I fixed the ranges so they match and are not the entire column.

+ 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. Need to apply conditional formatting to large range of cells
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-01-2016, 12:59 AM
  2. [SOLVED] VB code to apply Conditional formatting to a range of cells
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 11:49 AM
  3. Conditional formatting if in range of values: apply to column
    By marcopietro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2014, 02:34 PM
  4. Apply Conditional Formatting to Relative Range
    By wotaj in forum Excel General
    Replies: 1
    Last Post: 09-18-2014, 12:44 PM
  5. [SOLVED] Conditional Formatting Apply to Range
    By daved2424 in forum Excel General
    Replies: 3
    Last Post: 09-27-2012, 08:35 AM
  6. [SOLVED] How to apply Conditional Formatting to just ONE cell and NOT its duplicates in a range?
    By otorrhea in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2012, 02:31 AM
  7. Conditional Formatting won't apply to Entire Range
    By DoriBeE in forum Excel General
    Replies: 8
    Last Post: 05-11-2011, 03: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