Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default multiple data validation

i want to do 2 data validation at a time for same cell e.g.

(1)text length should be exactly 10
(2)First two letter should be either of 'NW" OR "UP" OR "DN"
(3)Next two letter be either of "NR" OR "WR"
(4)Rest 6 can be anything

e.g. UPWR123421
DNWR12/345
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default multiple data validation

Assuming cell A1:
Under Validation, choose Custom. Input this as your formula:

=AND(LEN(A1)=10,OR(LEFT(A1,2)="NW",LEFT(A1,2)="UP" ,LEFT(A1,2)="DN"),OR(MID(A1,3,2)="NR",MID(A1,3,2)= "WR"))
--
Best Regards,

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


"aditya" wrote:

i want to do 2 data validation at a time for same cell e.g.

(1)text length should be exactly 10
(2)First two letter should be either of 'NW" OR "UP" OR "DN"
(3)Next two letter be either of "NR" OR "WR"
(4)Rest 6 can be anything

e.g. UPWR123421
DNWR12/345

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default multiple data validation

Assuming the data is in A1, In Data/Validation, use custom and enter the below.

=IF(AND(LEN(A1)=10,OR(LEFT(A1,2)="NW",LEFT(A1,2)=" UP",LEFT(A1,2)="DN"),OR(MID(A1,3,2)="NR",MID(A1,3, 2)="WR")),TRUE,FALSE)
"aditya" wrote:

i want to do 2 data validation at a time for same cell e.g.

(1)text length should be exactly 10
(2)First two letter should be either of 'NW" OR "UP" OR "DN"
(3)Next two letter be either of "NR" OR "WR"
(4)Rest 6 can be anything

e.g. UPWR123421
DNWR12/345

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default multiple data validation

Data-Data validation-Custom-insert the formula:

=AND(OR(LEFT(A1,2)="NW",LEFT(A1,2)="UP",LEFT(A1,2) ="DN"),OR(MID(A1,3,2)
="NR",MID(A1,3,2)="WR"),LEN(A1)=10)

pls click YES if this helped


On 27 Maj, 14:14, aditya wrote:
i want to do 2 data validation at a time for same cell e.g.

(1)text length should be exactly 10
(2)First two letter should be either of 'NW" OR "UP" OR "DN"
(3)Next two letter be either of "NR" OR "WR"
(4)Rest 6 *can be anything

e.g. * UPWR123421
* * * * *DNWR12/345


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
Multiple Data Validation VoxBox-Richard Excel Worksheet Functions 3 July 29th 08 01:19 PM
Multiple Data Validation betany70 Excel Discussion (Misc queries) 2 July 24th 07 09:42 PM
Data Validation & multiple columns Bob Excel Discussion (Misc queries) 1 April 9th 07 10:24 AM
Data Validation with Multiple Sources Jerkyboy Excel Discussion (Misc queries) 1 August 15th 06 10:49 PM
Data Validation (Multiple Choice) John Jost Excel Worksheet Functions 4 December 13th 05 01:45 PM


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