Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default DataValidation Check in cell of excel

there are 3 excel cols,

when user enters in col1, it should be allowed only if data is not
present in col2 and col3.

also when enters in col2, not be allowed to enter if data is there in
col1 and col3

also when enters in col3, not be allowed to enter is data is there in
col1 and col2

so which is the formula to use in the excel col so that the above
holds true.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default DataValidation Check in cell of excel

Selecting your 3 cells (assuming A2:C2)
Data-Validation, custom. Formula is:
=COUNTA($A2:$C2)<=1

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"AmitAgarwal" wrote:

there are 3 excel cols,

when user enters in col1, it should be allowed only if data is not
present in col2 and col3.

also when enters in col2, not be allowed to enter if data is there in
col1 and col3

also when enters in col3, not be allowed to enter is data is there in
col1 and col2

so which is the formula to use in the excel col so that the above
holds true.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default DataValidation Check in cell of excel

Hi,

The answer depends on what you actually mean by the question. If you only
want one entry per row then use Luke's suggestion or the slightly shorter
version

=COUNTA($A2:$C2)=1

But if you mean there can be no duplicates on a row then use

You can prevent duplicate entries in a range as follows:

1. Highlight the range, lets say A1:C1
2. Choose the command Data, Validation
3. Under Allow choose Custom
4. Enter the following formula in the Formulas box:
=COUNTIF($A1:$C1,A1)=1

One thing to keep in mind - if the user copies and pastes data into the
range where the Data Validation is, it is wiped out and anything can be
entered.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"AmitAgarwal" wrote:

there are 3 excel cols,

when user enters in col1, it should be allowed only if data is not
present in col2 and col3.

also when enters in col2, not be allowed to enter if data is there in
col1 and col3

also when enters in col3, not be allowed to enter is data is there in
col1 and col2

so which is the formula to use in the excel col so that the above
holds true.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default DataValidation Check in cell of excel

Thanks luke as well Shane for your prmpt replies,

it worked ,

thanks again


On Jul 17, 7:52*pm, Shane Devenshire
wrote:
Hi,

The answer depends on what you actually mean by the question. *If you only
want one entry per row then use Luke's suggestion or the slightly shorter
version

=COUNTA($A2:$C2)=1

But if you mean there can be no duplicates on a row then use

You can prevent duplicate entries in a range as follows:

1. Highlight the range, lets say A1:C1
2. Choose the command Data, Validation
3. Under Allow choose Custom
4. Enter the following formula in the Formulas box:
=COUNTIF($A1:$C1,A1)=1

One thing to keep in mind - if the user copies and pastes data into the
range where the Data Validation is, it is wiped out and anything can be
entered.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire



"AmitAgarwal" wrote:
there are 3 excel cols,


when user enters in col1, it should be allowed only if data is not
present in col2 and col3.


also when enters in col2, not be allowed to enter if data is there in
col1 and col3


also when enters in col3, not be allowed to enter is data is there in
col1 and col2


so which is the formula to use in the excel col so that the above
holds true.- Hide quoted text -


- Show quoted text -


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
Offset Named range in Datavalidation List Vinod Excel Discussion (Misc queries) 3 June 20th 09 03:26 AM
Count entries in a range that match a certain criteria within datavalidation. [email protected] Excel Discussion (Misc queries) 3 February 6th 08 04:35 AM
datavalidation conditional list TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 March 28th 07 02:45 AM
datavalidation conditional list Toppers Excel Discussion (Misc queries) 1 March 28th 07 02:08 AM
Datavalidation using lists - problem in 2007 B2TR to RTM workbook AC [MVP MCMS] Excel Discussion (Misc queries) 2 December 26th 06 04:52 PM


All times are GMT +1. The time now is 05:15 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"