Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default checking a Cells contents

Maybe there is a simpler way, but this example springs to mind:

a="1A1":? a like "[0-9][A-Z][0-9]"

a="1a1":? a like "[0-9][a-zA-Z][0-9]"

a="1a1":? ucase(a) like "[0-9][A-Z][0-9]"

(try 'em as-is in Immediate window)

"antinoz" wrote in message
...
I'm trying to validate data in a column of cells to check that the format

is
"NNANNNNNN" (N= number A= Alpha I have) all the cell contents are

different
but have 9 characters containing the alphanumeric format as shown

I want to put it in an If statement:

so if cell A1 = mask "NNANNNNNNN" cell A2 = "Valid order"



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
concatenate contents of cells whose contents resemble cell referem cathyh Excel Worksheet Functions 3 May 23rd 09 12:16 PM
Checking the length of cell contents RichardG Excel Discussion (Misc queries) 8 February 21st 06 12:37 PM
Auto-checking a checkbox based on cell contents. Ramon Cantu Jr. Excel Programming 2 May 27th 04 02:18 AM
Checking contents Edgar Thoemmes Excel Programming 4 February 9th 04 02:01 AM
Checking contents Edgar Thoemmes[_2_] Excel Programming 5 February 3rd 04 02:56 PM


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