LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Function to validate entries in a defined range

I want to create a function that tests a range of cells stated to ensure
that the cells contain only valid data entries - lets call the function
ValidateEntry.

For my purposes valid data is any cell in the range whose value is either:-

1) Null (Blank or empty)
2) "X" (the letter X)
3) Begins with the letters "DC" and is immediately followed by 2 digits e.g
DC09
4) Begins with the letters "SC" and is immediately followed by 2 digits e.g
SC25


e.g ValidateEntry(A5:Z5) would return a "true" statues if all cells within
that range met the criteria above, if not then it would return a "false"
answer (I.e boolean argument).

I want to then use this function in an If statement
e.g If(ValidateEntry(A5:Z5),"Hooray!","Ooops!")

Sorry - still learning!!!


 
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
Inserting a row within a range that is defined in a sum function Victor[_2_] Excel Discussion (Misc queries) 2 November 25th 09 04:32 PM
validate time entries linked to each other matfis Excel Worksheet Functions 2 October 19th 09 08:46 PM
Possible to validate entries not to contain 00 [email protected] Excel Discussion (Misc queries) 1 December 14th 07 09:55 AM
How to validate entries with Data Forms in xls 2003? Marc S. Setting up and Configuration of Excel 1 May 25th 06 03:19 PM
Validate entries Frank Kabel Excel Programming 0 September 13th 04 05:49 PM


All times are GMT +1. The time now is 03:17 AM.

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"