Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default A data validation question

I'm trying to understand how/why Excel does this and would like to
know if there is a way to do this differently. Here is my scenario

Column-A contains numeric data
1
0
2
0
3
4
5

Column-B is a "custom" data validated field with the following
formula: =OR(AND(A1=0,B1=0),AND(A10,B1=2))

If I input a value to Column-B-1 =2 the value is accepted.

If I drag the cell (from bottom right) to fill down rows the value
from Column-B-1 is "copied" as well.

I understand this. What I can't understand is the value it copies
violated the data validation formula (no error is returned) and then I
must manually enter the acceptable value, 0, into Column-B-2.

Is there a way to either make the value of Column-B-2 a 0 (zero) or an
empty cell on a drag/fill operation?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default A data validation question

Portunus wrote:
I'm trying to understand how/why Excel does this and would like to
know if there is a way to do this differently. Here is my scenario

Column-A contains numeric data
1
0
2
0
3
4
5

Column-B is a "custom" data validated field with the following
formula: =OR(AND(A1=0,B1=0),AND(A10,B1=2))

If I input a value to Column-B-1 =2 the value is accepted.

If I drag the cell (from bottom right) to fill down rows the value
from Column-B-1 is "copied" as well.

I understand this. What I can't understand is the value it copies
violated the data validation formula (no error is returned) and then I
must manually enter the acceptable value, 0, into Column-B-2.

Is there a way to either make the value of Column-B-2 a 0 (zero) or an
empty cell on a drag/fill operation?

Thanks


data is checked against validation rule only if it is entered "by keyboard".
If you paste, drag or uses vba to enter value in a cell nothing is
validated.
Ask Microsoft why.

you can use vba code to check values in worksheet_change event


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
Data Validation Question NFL Excel Discussion (Misc queries) 2 June 23rd 09 07:03 PM
Data validation (lis) question Patrick C. Simonds Excel Worksheet Functions 2 April 4th 09 04:44 PM
Data Validation Question Please Help[_2_] Excel Discussion (Misc queries) 4 October 26th 07 07:30 PM
Data Validation Question SiH23 Excel Discussion (Misc queries) 3 August 11th 07 11:29 PM
Data Validation Question dgraham Excel Discussion (Misc queries) 6 April 28th 06 01:03 PM


All times are GMT +1. The time now is 01:09 AM.

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"