Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Simple question

Quick question, I think it is easy but just cannot think
how to do it.

I want to check if a cell equals the following format.
n = Numeric Char
A = Alpha Char

N*AAANNNNN

The following 3*abc12345 would evaluate to true.

example if cells(1,1) = N*AAANNNNN then

Any help greatly appreciatted.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Simple question

One way:

If Cells(1, 1).Value Like "#*[A-Z,a-z][A-Z,a-z][A-Z,a-z]#####" Then

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

skrev i en meddelelse
...
Quick question, I think it is easy but just cannot think
how to do it.

I want to check if a cell equals the following format.
n = Numeric Char
A = Alpha Char

N*AAANNNNN

The following 3*abc12345 would evaluate to true.

example if cells(1,1) = N*AAANNNNN then

Any help greatly appreciatted.




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
simple IF question bokey Excel Discussion (Misc queries) 4 May 16th 08 07:04 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Very simple question. Fenneth Excel Discussion (Misc queries) 3 April 19th 06 07:53 PM
Simple Question WordProc Excel Discussion (Misc queries) 3 April 1st 06 12:19 AM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM


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