"mlv" <mike.safetycatchvinc...@jet.co.uk> wrote...
Harlan Grove chastised:
>> I wrote:
>>
[quoted text clipped - 9 lines]
> Data validation is ONLY triggered on cell ENTRY, not on
> recalculation of a cell's value.
Hmm, I think I see what you mean. To get the formula accepted at inception,
it has to return a value that is accepted by the Data Validation criteria
(if Data Validation is set). After that, it doesn't seem to matter and any
value is accepted and displayed in the cell.
I had assumed that recalculation of a cell value by a formula would be the
equivalent of a new cell entry. Why wouldn't it be?
> Don't guess this time, try it!
I didn't guess last time. I was testing by reinitialising the formula, so
Data Validation was triggered every time and I got the results I reported.
Because I was using reinitialisation of the formula, I didn't pick up on the
anomaly that a change of value in a cell is not validation checked when it
is the result of a formula recalculation.
Why, when a formula recalculates and changes a cell's value, isn't it
considered to be a new cell entry, just as if someone had manually entered a
new value? It seems logical (to me) that it should be. Perhaps I'm missing
something here?
Now I've got to rethink my approach. Guess I have to incorporate any
necessary data validation into the formula instead.

Signature
Mike
-Please remove 'safetycatch' from email address before firing off your
reply-
Harlan Grove - 16 Apr 2008 00:59 GMT
"mlv" <mike.safetycatchvinc...@jet.co.uk> wrote...
...
>I had assumed that recalculation of a cell value by a formula would
>be the equivalent of a new cell entry. Why wouldn't it be?
...
Just because it isn't.
Excel distinguishes between cell entry and cell evaluation. That's
just the way it's designed. Besides, data validation is a toy feature.
It's easily bypassed by pasting plain text into cells. For example, in
an new workbook give cell A1 the data validation formula =A1>=0. Now
copy the following nonblank line from this newsgroup posting
-100
switch back to Excel, move to this particular cell and press [Ctrl]+V.