LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Validation based on digits in the middle of a string

On Apr 20, 3:55 pm, TexasStar wrote:
David,

I tried using your code in the data validation part and when I copy
and paste it in and try and hit the "ok" button it gives me an error
message back saying that the forrmula contains an error. I tried to
figure out where the problem is but this seems like a fairly complex
formula and I wans't able to fix the problem. Can you look your
formula over and see if you can figure out where the error is?

I think your method is exactly what I am looking for so it would be
really awesome if I can get this working! Thx for your help with this.
It's greatly appreciated.


Did you change A1 to the address of the cell you are setting up the
validation for?
Did you paste the entire formula (including the = sign)?
Are you using Excel 2003 or higher (I'm not sure if lower versions
support all the functions)?

Here are some debugging steps you could use:
1. Try pasting the formula into a regular cell and see if it displays
TRUE or FALSE.
2. Try breaking up the formula into smaller bits to see if they work
=SEARCH("-???-",A1) // should show the index of the -
###- part for text in A1
=MID(A1,SEARCH("-???-",A1)+1,3) // should extract the
middle portion of the text in A1
=MATCH(MID(A1,SEARCH("-???-",A1)+1,3),validlist,0) //
should print a number if the middle portion is found, or an error if
not

Unfortunately theres only so much I can do without seeing the error
that you're seeing.

David

 
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
Add a character to the middle of a text string Glynn Taylor Excel Discussion (Misc queries) 3 April 3rd 23 02:38 PM
Forcing a line feed in the middle of a string dhstein Excel Discussion (Misc queries) 3 July 19th 09 10:57 PM
How to extract text from middle of a string Makelei Excel Worksheet Functions 18 July 9th 08 09:03 PM
Copy middle digits from one cell into another Sharon R Excel Worksheet Functions 7 January 3rd 07 11:35 PM
copy middle digits from one cell into another Sharon R Excel Discussion (Misc queries) 1 January 3rd 07 09:23 PM


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