Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default distinct values in column


I like to format a column such that it allows only distinct values. for
eg in the column A i have 10 numbers 1to 10 (A1 to A10) . if i enter
any value between 1 and 10 in A11 it should not allow. A11,A12.....etc
should allow only distinct values. pls help me to do this

thanks in advance


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287

  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default distinct values in column

Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3



"parthaemail" wrote:


I like to format a column such that it allows only distinct values. for
eg in the column A i have 10 numbers 1to 10 (A1 to A10) . if i enter
any value between 1 and 10 in A11 it should not allow. A11,A12.....etc
should allow only distinct values. pls help me to do this

thanks in advance


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287


  #3   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default distinct values in column


hi

the below procedure is not working out, can you please check it out




Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287

  #4   Report Post  
Posted to microsoft.public.excel.newusers
via135
 
Posts: n/a
Default distinct values in column


hi!

Data Validation Allow Whole Numbers Not Between 1 & 10

-via135



parthaemail Wrote:
hi

the below procedure is not working out, can you please check it out




Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=519287

  #5   Report Post  
Posted to microsoft.public.excel.newusers
R..VENKATARAMAN
 
Posts: n/a
Default distinct values in column

why not put a list somewhere 1,23,...10 for e.g in g1 to g10
in data validation window choose list(in settings)
and give g1:g10 and error message as not valid.


"parthaemail"
wrote in message
...

hi

the below procedure is not working out, can you please check it out




Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile:
http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287





  #6   Report Post  
Posted to microsoft.public.excel.newusers
George Gee
 
Posts: n/a
Default distinct values in column


Do you wish to enter UNIQUE values into column A?
If yes, then I think 'Data Validation' will not work.

A clumsy approach would be:
In another column, say B.
In B1 =IF(MAX(COUNTIF(A:A,A:A))1,"Duplicate","")
Copy this formula down column b as far as you wish.

If you have '8' in A8, and enter '8' in say A12, then
A8 and A12 will display 'Duplicate', until you change one
of the '8' entries.

Any use?

George Gee


"parthaemail"
wrote in message
...

hi

the below procedure is not working out, can you please check it out




Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3





  #7   Report Post  
Posted to microsoft.public.excel.newusers
George Gee
 
Posts: n/a
Default distinct values in column

Sorry, slight mistake, should read:
B8 and B12 will display 'Duplicate'.....

George Gee


"George Gee" wrote in message
...


If you have '8' in A8, and enter '8' in say A12, then
A8 and A12 will display 'Duplicate', until you change one
of the '8' entries.



  #8   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default distinct values in column

Sorry, you're right of course..........I mis-read the post. I see others
have since given you answers more to the point.

Vaya con Dios,
Chuck, CABGx3



"parthaemail" wrote:


hi

the below procedure is not working out, can you please check it out




Data Validation Allow whole number Between 1 and 10...add error
message if you wish, according to menu.

Vaya con Dios,
Chuck, CABGx3


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287


  #9   Report Post  
Posted to microsoft.public.excel.newusers
George
 
Posts: n/a
Default distinct values in column

Goto cell A then choose 'Data Validation' from the menu

In the Allow: box choose 'custom'
In the formula: box type the following
=AND(A1=1,A1<=10,MOD(A1,1)=0,FREQUENCY(A:A,A:A)<= 1)
Enter an appropriate error message under the error alert tab
Then copy down to as many cells as needed

The mod function checks for whole numbers
and the frequency checks for any duplicates

hope this helps

George


parthaemail wrote:
I like to format a column such that it allows only distinct values. for
eg in the column A i have 10 numbers 1to 10 (A1 to A10) . if i enter
any value between 1 and 10 in A11 it should not allow. A11,A12.....etc
should allow only distinct values. pls help me to do this

thanks in advance



  #10   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default distinct values in column


hi all

Thanks for all you replies , It is working out.

Thank you experts


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287



  #11   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default distinct values in column


hi

i have a different requirement now, column a should accept only
distinct values. if same number is entered this it should give an alert
in the msg box instead of displaying in the column as duplicate. i think
we have to use macros for this. please help me

thanks in advance


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287

  #12   Report Post  
Posted to microsoft.public.excel.newusers
George
 
Posts: n/a
Default distinct values in column

I posted an answer a few days ago but it seems to have not worked

Try this
Goto cell A then choose 'Data Validation' from the menu

In the Allow: box choose 'custom'
In the formula: box type the following
=AND(MOD(A1,1)=0,FREQUENCY(A:A,A:A)<=1)
Enter an appropriate error message under the error alert tab
Then copy down to as many cells as needed

The mod function checks for whole numbers
and the frequency checks for any duplicates

hope this helps

George

parthaemail wrote:
hi

i have a different requirement now, column a should accept only
distinct values. if same number is entered this it should give an alert
in the msg box instead of displaying in the column as duplicate. i think
we have to use macros for this. please help me

thanks in advance


  #13   Report Post  
Posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default distinct values in column

"parthaemail" wrote:
... column a should accept only distinct values.
if same number is entered this it should give an alert ..


This might work as well ..

Select col A
Data Validation
Allow: Custom
Formula: =COUNTIF(A:A,A1)<2
Click OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #14   Report Post  
Posted to microsoft.public.excel.newusers
parthaemail
 
Posts: n/a
Default distinct values in column


hi all

The below procedure is working fine. hearty thanks for valuable
information.



Goto cell A then choose 'Data Validation' from the menu

In the Allow: box choose 'custom'
In the formula: box type the following
=AND(MOD(A1,1)=0,FREQUENCY(A:A,A:A)<=1)
Enter an appropriate error message under the error alert tab
Then copy down to as many cells as needed

The mod function checks for whole numbers
and the frequency checks for any duplicates


--
parthaemail
------------------------------------------------------------------------
parthaemail's Profile: http://www.excelforum.com/member.php...o&userid=31311
View this thread: http://www.excelforum.com/showthread...hreadid=519287

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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Lookup values in a column and display them in order with no gaps Snaggle22 Excel Worksheet Functions 1 April 12th 05 11:36 PM
How sum values in column B using values in column A as the conditi oldgrayelf Excel Worksheet Functions 5 February 4th 05 09:03 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


All times are GMT +1. The time now is 12:58 PM.

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

About Us

"It's about Microsoft Excel"