+ Reply to Thread
Results 1 to 11 of 11

Change cell color once condition is met

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Change cell color once condition is met

    I want to change the color of one row (A-F) when a certain condition in column C is met. Example when cell C5 is equals to "Available", the A5 to F5 cell color should be changed. Same on column F once a value exceeds 6.00.automatic formatting.xlsx

  2. #2
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Change cell color once condition is met

    Hi. See sample file.
    Attached Files Attached Files
    Please * if you like the answer

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Change cell color once condition is met

    Look at this link on conditional formatting

    http://www.techonthenet.com/excel/qu...rmat4_2007.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Change cell color once condition is met

    try this, look into the conditional formatting function to see how it was done.
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Change cell color once condition is met

    Please see attached file
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Change cell color once condition is met

    Thank you AlKey for the response, the file you attached is working succesfully however. i would appreciate a step by step for me to have a knowledge and also to apply formatting to my other files.

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Change cell color once condition is met

    miss_chole, since AlKey is offline now, he did it the same way I did it but he caught the one condition I missed. You go to the "Home" tab and under styles select "conditional formatting", then click on "new rule" and for the months deployed column (F) you select format only cells that contain cell value in the edit rule description and greather than and 6, then the format button and select the fill tab and the color you want then ok, ok and apply.
    For the colored blue rows select you select "new rule" to add an additional rule, then "use a formula to determine which cells to format and I used =$C2="available" and copied down all the rows.
    Hopefully that's clear.

    EDIT: BTW, you can give kudos (* add reputation) to any (or all) who helped you so don't forget to give to AlKey, and if your pblm is solved don't forget to mark the post as such.
    Last edited by Sam Capricci; 10-02-2013 at 09:00 AM.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Change cell color once condition is met

    Quote Originally Posted by miss_chloe View Post
    Thank you AlKey for the response, the file you attached is working succesfully however. i would appreciate a step by step for me to have a knowledge and also to apply formatting to my other files.
    Hello miss_chloe,

    1. The formula for the Blue colored cells: =($C2:$C$16="Available") . The important part is $C2 the number 2 is not absolute but relative.
    Apply to area should be =$A$2:$F$16. This the entire range of the table.

    Hope this hellp

    Also I am very glad that we could help. Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  9. #9
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Change cell color once condition is met

    Thank you AlKey and SamboKid for the help, the blue cell color formatting is ok. But the orange cell color when cell is equals or greater than 6, im still stuck. Im on the Conditional Formattin Rules Manager windows and i already have a rule for the orange cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and it applies to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but its not working.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Change cell color once condition is met

    Click on conditional formatting >> manage rules >> select the rule for the orange formatted rule and click on edit rule, change the rule from "equals to" to Cell Value "greater than or equal to" and leave it as =6 and that should work, click ok then ok or apply. Should work for you.

  11. #11
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Change cell color once condition is met

    Thank you Sambo kid. i figured it out. it works fine.

+ 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] Formula to highlight cell (or change font color) when condition is met
    By Maezee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2013, 04:17 PM
  2. [SOLVED] Change Cell Color if Condition is Met
    By sourbeer in forum Excel General
    Replies: 1
    Last Post: 06-22-2012, 01:53 PM
  3. Macro to validate a condition and change cell color
    By kapil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2010, 10:10 AM
  4. Change the color of the font in a cell under a condition.
    By Quiltface in forum Excel General
    Replies: 1
    Last Post: 11-06-2009, 02:36 PM
  5. if condition to change cell color
    By pantea in forum Excel General
    Replies: 1
    Last Post: 02-09-2008, 05:16 AM

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