Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Multiple Data Validation Checks

=AND(AND(ISNUMBER(A1),A1=1000,A1<=9999),NOT(ISNUM BER(MATCH(A1,WRONG,0))))

Hopefully this is the correct one?


Yes, as I'm sure you would have tested it out yourself, right?

You could replace: NOT(ISNUMBER(MATCH(A1,WRONG,0)))
with the slightly shorter: ISERROR(MATCH(A1,WRONG,0))

ie this expression should work just as well:
=AND(AND(ISNUMBER(A1),A1=1000,A1<=9999),ISERROR(M ATCH(A1,WRONG,0)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote in message
...
Sorry Max,

But what I meant was that I want the user to be entering numbers from 1000
to 9999 except for 1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999
listed in the range!

However, your formula surely did help out and I have modified it to:

=AND(AND(ISNUMBER(A1),A1=1000,A1<=9999),NOT(ISNUM BER(MATCH(A1,WRONG,0))))

Hopefully this is the correct one?



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
Formula which checks multiple criteria before counting JHolmes Excel Discussion (Misc queries) 10 February 22nd 08 03:57 PM
multiple choice data validation creativeops Excel Discussion (Misc queries) 5 September 14th 07 09:21 AM
Multiple Data Validation betany70 Excel Discussion (Misc queries) 2 July 24th 07 09:42 PM
How to do multiple IF checks with dates AND text RJ Fleener Excel Worksheet Functions 6 October 22nd 06 03:42 AM
Data validation for Multiple columns NC Excel Discussion (Misc queries) 2 May 11th 05 01:51 PM


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