+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting - Change font colour based on whether cell contains formula or not

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Conditional Formatting - Change font colour based on whether cell contains formula or not

    I was wondering if this is possible?
    I have a bunch of cells (say A1:A10) that each contain a formula suggesting a value, assume A1 has the formula =B1+C1, copied down.
    If I then edit A1 manually by typing in a number, I would like the A1 cell to display a different colour (so that I know that I have edited it and there is no longer a formula within it)

    Any suggestions as to how I can do this?

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Conditional Formatting - Change font colour based on whether cell contains formula or

    Hi,
    One way is to use the old XLM through a defined name to see if a cell has a formula.

    Start by defining the name IsFormula (under Formulas->Name Manager) as:
    Please Login or Register  to view this content.
    Then set the conditoinal formatting through a formula ("Use a formula to determine which cells to format") on the cells you want to format and apply the color settings you want. The conditional formula for non-formulas should equal:
    Please Login or Register  to view this content.
    More reading about the XLM in this instance can be found at http://www.mrexcel.com/forum/excel-q...arguments.html

    Hope that helps.

    Rgs,
    berlan

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Conditional Formatting - Change font colour based on whether cell contains formula or

    Works a treat.
    Thanks Very Much

+ 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] Change cell colour based on text being present - conditional formatting?
    By rob-the-randy-rascal in forum Excel General
    Replies: 8
    Last Post: 08-01-2013, 11:24 AM
  2. Replies: 6
    Last Post: 07-18-2013, 04:16 AM
  3. [SOLVED] Conditional Formatting to Change Cell Colour Based on Date
    By Kym2101 in forum Excel General
    Replies: 5
    Last Post: 05-01-2012, 11:41 PM
  4. [SOLVED] Can I change a cell colour using an IF formula, not conditional formatting?
    By suxrule in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-29-2012, 10:52 AM
  5. conditional formatting to change colour of cell based on formula result
    By gideong in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2009, 09:35 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