+ Reply to Thread
Results 1 to 7 of 7

Change cell colour if criteria is met

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Pretoria, South-Africa
    MS-Off Ver
    2013
    Posts
    11

    Change cell colour if criteria is met

    Good Day,

    How can I automatically change the cell colour of a couple of rows (eg A20:G20), as soon as there is a value in eg I20?

    Thank you in advance

    Rudz

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: Change cell colour if criteria is met

    You can use conditional formatting..

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Cheers!
    Deep Dave

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,693

    Re: Change cell colour if criteria is met

    Use a conditional formatting rule on A20:G20 using a formula that establishes whether the cell is blank or not:

    =ISBLANK(I20)=FALSE
    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
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Change cell colour if criteria is met

    Hi,
    Select your range: A20:G20

    Go to Conditional Formatting,
    Formula:
    =$I$20<>""

    Set format as required.

    Blessing

  5. #5
    Registered User
    Join Date
    11-23-2015
    Location
    Pretoria, South-Africa
    MS-Off Ver
    2013
    Posts
    11

    Re: Change cell colour if criteria is met

    I have attached a sample workbook

    Thanks

    Rudz
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-23-2015
    Location
    Pretoria, South-Africa
    MS-Off Ver
    2013
    Posts
    11

    Re: Change cell colour if criteria is met

    Thank you very much people!! My problem is now solved!!

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Change cell colour if criteria is met

    Quote Originally Posted by Rutz View Post
    I have attached a sample workbook

    Thanks

    Rudz
    Select your range, go to conditional formatting:

    Use this in CF formula:

    =$T3="OK"

    Regards,

+ 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] vba to change colour of cell dependant on criteria
    By nickhunt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2013, 04:02 PM
  2. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  3. Formula to change multiple cells colour if criteria met
    By al3xwhit3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 05:27 AM
  4. [SOLVED] Macro to change text colour of adjacent cell to the same text colour as target cell
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-28-2012, 04:18 AM
  5. Replies: 2
    Last Post: 06-07-2011, 07:00 AM
  6. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  7. [SOLVED] change a cell background colour to my own RGB colour requirements
    By Stephen Doughty in forum Excel General
    Replies: 4
    Last Post: 06-16-2006, 08:15 AM
  8. Criteria - Automatic Change Font or Fill Colour
    By stevembe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2005, 12:05 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