#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Validation Question

Hi,

I would be most grateful if someone could offer some help or advice.

I wish to Validate a range of cells from D4 to D100 which will only allow
the following:

1. only a 7 figure number to be entered.
2. to not allow a duplicate 7 figure value to be entered.

Many thanks,

Simon.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Validation Question

Click on D4, then drag over or
Highlight the area D4:D100

at the menu, Data, Validation, on Settings Tab select Custom.
In the formula box paste in

=AND(LEN(D4)=7,COUNTIF($D$4:$D$100,D4)<=1)

and OK (out)

Write back if problems..


"SiH23" wrote:

Hi,

I would be most grateful if someone could offer some help or advice.

I wish to Validate a range of cells from D4 to D100 which will only allow
the following:

1. only a 7 figure number to be entered.
2. to not allow a duplicate 7 figure value to be entered.

Many thanks,

Simon.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Validation Question

Validation for D4:

=LEN(D4)=7

Highlight D5:D100 and then use the Validation:

=AND(LEN(D5)=7,COUNTIF($A:$I,D5)=1)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"SiH23" wrote in message
...
Hi,

I would be most grateful if someone could offer some help or advice.

I wish to Validate a range of cells from D4 to D100 which will only allow
the following:

1. only a 7 figure number to be entered.
2. to not allow a duplicate 7 figure value to be entered.

Many thanks,

Simon.



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
Question on Validation Manju Excel Worksheet Functions 3 January 12th 07 09:04 PM
Ryan- Validation Question Mike Smith NC Excel Discussion (Misc queries) 2 July 11th 06 04:39 PM
validation question G Excel Discussion (Misc queries) 12 January 24th 06 10:55 PM
Validation Question....Can this be done? harpscardiff Excel Discussion (Misc queries) 2 January 11th 06 05:15 PM
DataValidation Question Weave New Users to Excel 2 December 12th 05 08:06 PM


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