#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default data validation

Hi,
I like to know how i can limit cell to whole numbers only, but also avoid
duplication of the same number in different cells.

Tnx. in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default data validation

Assume the range of cells in question is A1:A10

Select the range A1:A10
Goto the menu DataValidation
Allow: Custom
Formula:

=AND(INT(A1)=A1,COUNTIF(A$1:A$10,A1)<2)

OK out

--
Biff
Microsoft Excel MVP


"jiji" wrote in message
...
Hi,
I like to know how i can limit cell to whole numbers only, but also avoid
duplication of the same number in different cells.

Tnx. in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default data validation

TNX.

"T. Valko" wrote:

Assume the range of cells in question is A1:A10

Select the range A1:A10
Goto the menu DataValidation
Allow: Custom
Formula:

=AND(INT(A1)=A1,COUNTIF(A$1:A$10,A1)<2)

OK out

--
Biff
Microsoft Excel MVP


"jiji" wrote in message
...
Hi,
I like to know how i can limit cell to whole numbers only, but also avoid
duplication of the same number in different cells.

Tnx. in advance.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default data validation

You're welcome!

--
Biff
Microsoft Excel MVP


"jiji" wrote in message
...
TNX.

"T. Valko" wrote:

Assume the range of cells in question is A1:A10

Select the range A1:A10
Goto the menu DataValidation
Allow: Custom
Formula:

=AND(INT(A1)=A1,COUNTIF(A$1:A$10,A1)<2)

OK out

--
Biff
Microsoft Excel MVP


"jiji" wrote in message
...
Hi,
I like to know how i can limit cell to whole numbers only, but also
avoid
duplication of the same number in different cells.

Tnx. in advance.






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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


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