Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Conditional Formatting: Fill Cell if Formula Overwritten

Dear all,

Cell A1 contains a formula.

How would I go about conditonally formatting A1 such that the cell will be
filled if the formula is overwritten by a hard number?


Thanks in advance,

Neil
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Conditional Formatting: Fill Cell if Formula Overwritten

Any reason not to lock the cell and use worksheet protection to keep people
from accidentally overtyping the formula?

Here's one option, I'm sure there will be others.

Start in your cell of concern (lets use A1), it has a formula in it such as
=A2+B3
In another cell somewhere put in the same formula, but subtract 1 from the
result as: =A2+B3-1
Let's say that was cell J1.
Then for your conditional format you can use:
Cell Value and 'not equal to' and enter =$J$1+1

This doesn't guarantee instant recognition of the overtyping. Lets say that
the answer from the formula is 27 and someone types in 27. The format will
not change, but as soon as a value in the precedent cells (A2 or B3) changes,
then you'll get the alert.

Another way would be to use VBA and the worksheet's _Change() event to
monitor the cell. And as I said, someone may come along and offer a method
that doesn't use the 2nd cell as I did. BTW: that second cell can be hidden,
on another sheet or even on another sheet that itself is hidden.


"Neil Pearce" wrote:

Dear all,

Cell A1 contains a formula.

How would I go about conditonally formatting A1 such that the cell will be
filled if the formula is overwritten by a hard number?


Thanks in advance,

Neil

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Conditional Formatting: Fill Cell if Formula Overwritten

John Walkenbach describes a method he

http://j-walk.com/ss/excel/usertips/tip045.htm

Actually, his approach is the opposite of what you want, in that he
colours a cell that contains a formula, but perhaps you can modify the
approach.

An alternative is to lock the cells with formulae in and protect the
sheet (with or without a password) to prevent accidental deletion/
overwriting of the cells containing formulae.

Hope this helps.

Pete

On Apr 14, 2:59*pm, Neil Pearce wrote:
Dear all,

Cell A1 contains a formula. *

How would I go about conditonally formatting A1 such that the cell will be
filled if the formula is overwritten by a hard number?

Thanks in advance,

Neil


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting - Formula to fill cell using % sbres Excel Worksheet Functions 2 January 22nd 10 11:21 PM
Conditional Formatting / Cell Fill Colours Coxy19 New Users to Excel 2 November 17th 08 07:57 PM
Conditional formatting overwritten with copy BillGriz Excel Discussion (Misc queries) 3 May 23rd 08 01:47 AM
fill autoshape color with ref cell conditional formatting Julie Excel Worksheet Functions 1 May 16th 08 05:01 PM
Cell Formatting Conditional On Other Cells Fill Color? [email protected] Excel Worksheet Functions 1 April 5th 06 10:05 PM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"