Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Custom Validation starting with 2 char & total less than 8 charact

Can a custom data validation formula be written for a cell to only allow a
user to enter a maximum of 8 characters (<=8) AND begin with the letters AD?

Thanks!

--
carusso
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Custom Validation starting with 2 char & total less than 8 charact

=AND(LEN(A1)<=8,LEFT(A1,2)="AD")
--
David Biddulph

"carusso" wrote in message
...
Can a custom data validation formula be written for a cell to only allow a
user to enter a maximum of 8 characters (<=8) AND begin with the letters
AD?

Thanks!

--
carusso



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Custom Validation starting with 2 char & total less than 8 cha

Hi David, thanks for your response.

I am trying to do this with Data/Validation/(Allow)Custom. I entered this
formula in the formula field there, but it is not working. If I try entering
text that is in compliance with the formula, I get the Stop error message.

Cheryl
--
carusso


"David Biddulph" wrote:

=AND(LEN(A1)<=8,LEFT(A1,2)="AD")
--
David Biddulph

"carusso" wrote in message
...
Can a custom data validation formula be written for a cell to only allow a
user to enter a maximum of 8 characters (<=8) AND begin with the letters
AD?

Thanks!

--
carusso




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Custom Validation starting with 2 char & total less than 8 cha

If your cell is not A1, did you remember to change the reference in the
formula?

It works for me.
--
David Biddulph

"carusso" wrote in message
...
Hi David, thanks for your response.

I am trying to do this with Data/Validation/(Allow)Custom. I entered this
formula in the formula field there, but it is not working. If I try
entering
text that is in compliance with the formula, I get the Stop error message.

Cheryl
--
carusso


"David Biddulph" wrote:

=AND(LEN(A1)<=8,LEFT(A1,2)="AD")
--
David Biddulph

"carusso" wrote in message
...
Can a custom data validation formula be written for a cell to only
allow a
user to enter a maximum of 8 characters (<=8) AND begin with the
letters
AD?

Thanks!

--
carusso






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Custom Validation starting with 2 char & total less than 8 cha

oooops.... ;-)

Works great now....thanks!

--
carusso


"David Biddulph" wrote:

If your cell is not A1, did you remember to change the reference in the
formula?

It works for me.
--
David Biddulph

"carusso" wrote in message
...
Hi David, thanks for your response.

I am trying to do this with Data/Validation/(Allow)Custom. I entered this
formula in the formula field there, but it is not working. If I try
entering
text that is in compliance with the formula, I get the Stop error message.

Cheryl
--
carusso


"David Biddulph" wrote:

=AND(LEN(A1)<=8,LEFT(A1,2)="AD")
--
David Biddulph

"carusso" wrote in message
...
Can a custom data validation formula be written for a cell to only
allow a
user to enter a maximum of 8 characters (<=8) AND begin with the
letters
AD?

Thanks!

--
carusso






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
auto row height a cell with wrap text enabled and a lot of charact RichAll-68 New Users to Excel 0 January 20th 09 04:15 PM
FIND 1 char in cell of any 3 char =True Nastech Excel Discussion (Misc queries) 5 April 26th 08 02:17 PM
Total 12 columns starting with first non blank column BillyRogers Excel Worksheet Functions 9 September 27th 07 09:12 PM
8500 cells with phone number(7 char.), wishing to add area code (10 char.) [email protected] Excel Discussion (Misc queries) 6 March 10th 06 05:13 PM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM


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