+ Reply to Thread
Results 1 to 11 of 11

Change color of cell with formula

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Change color of cell with formula

    Hi,

    I need a formula that makes a cell change color when another cell returns a value.

    Example:

    A1=1 (I want A2 to turn black)
    A1=Blank (No changes in A2)

    Best regards
    Øystein
    Last edited by Oeysbrei; 03-12-2017 at 04:04 PM. Reason: Reset first post

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    try =ISNUMBER($A$1) in CF with Applies to: =$A$2

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Change color of cell with formula

    Thanks for youre response sandy666, but I dont understand what you mean about this formula. Is it possible for you to post a file that contains what im asking for?

    Best regards
    Øystein Breivik

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    1. select A2
    2. open Conditional formatting
    3. New rule, use formula to determine which cells to format
    3. format values where this formula is true: =ISNUMBER($A$1) (på norsk: =ERTALL($A$1)
    4. select color (black)
    5. ok
    now try in A1 = X then A1 = 5
    Last edited by sandy666; 03-11-2017 at 08:27 PM.

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Change color of cell with formula

    Hi sandy666,

    You have probably explained it god, but I still dont understand how to do this.
    What is "Conditional formatting" and "New rule"?

    Best regards
    Øystein Breivik

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    see this (and change ISNUMBER to norsk version)
    Attached Images Attached Images
    Last edited by sandy666; 03-12-2017 at 09:45 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,825

    Re: Change color of cell with formula

    [Where are] 'conditional formatting' and 'new rule'?
    The conditional formatting icon is found on the 'Home' tab in the 'Styles' pane. Selecting the conditional formatting icon opens a drop down and new rule is the third option from the bottom.
    In the attached file cell A2 is selected. If you enable editing and select conditional formatting > manage rules (last option) you'll see Sandy's formula applied.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    Another way:
    Select A2 and next
    Alt + H, L, N, then down arrow to the end, TAB, =ERTALL($A$1) , TAB, Enter, Click Black, Ok, OK
    Last edited by sandy666; 03-12-2017 at 10:10 AM. Reason: typo (SUCURI) :)

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    Thanks for the feedback and marking thread as solved, but never delete description/question from the first post because all answers has non sense if you do that.
    If you can bring it back.
    Last edited by sandy666; 03-12-2017 at 10:50 AM.

  10. #10
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    369

    Re: Change color of cell with formula

    Hi sandy666,

    I dident know that I changed the first post, but now it should be ok I did something wrong when I should mar it solved.

    Regards
    Øystein

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Change color of cell with formula

    No problem if now it's ok
    If you mark thread solved (top right corner - thread tools) you don't need edit your first post because you are an owner of this thread. If you can't do that by yourself you can ask mod to do that. (mod - moderator)
    It's a good to know that for the future
    Have a nice day.

    btw. If you don't know how to do something with post go to Test Forum and try
    Last edited by sandy666; 03-12-2017 at 04:25 PM.

+ 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. Formula to Change Cell Color
    By peanut6932 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-19-2016, 04:33 PM
  2. [SOLVED] How to change cell background color in formula.
    By nico.base@live.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2012, 06:43 PM
  3. How do you change a cell color in a formula?
    By Cathy Brausa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2010, 02:53 PM
  4. change color and value of cell by formula
    By jurjon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2006, 11:00 AM
  5. Change color in cell if contains formula?
    By Wind54Surfer in forum Excel General
    Replies: 8
    Last Post: 07-17-2005, 07:05 PM
  6. [SOLVED] Cell color change in formula
    By Layth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2005, 03:06 PM
  7. Change cell color in a formula
    By antares63 in forum Excel General
    Replies: 0
    Last Post: 01-24-2005, 03:58 PM

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