Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SusanMurray
 
Posts: n/a
Default How do I restrict entry into a cell to only alpha/numeric?

How do I restrict entry into a cell to only alpha/numeric? I don't want
characters. Or maybe just limited characters like -.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default How do I restrict entry into a cell to only alpha/numeric?

Apply this formula in Data/Validation/Custom and adjust it to your
requirements as far as upper and lower case and additional characters are
concerned:

=OR(AND(CODE(B3)=65,CODE(B3)<=90),AND(CODE(B3)=9 7,CODE(B3)<=122),AND(CODE(B3)=48,CODE(B3)<=57))


Regards,
Stefi

€˛SusanMurray€¯ ezt Ć*rta:

How do I restrict entry into a cell to only alpha/numeric? I don't want
characters. Or maybe just limited characters like -.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SusanMurray
 
Posts: n/a
Default How do I restrict entry into a cell to only alpha/numeric?

I'm already using the data validation on this cell to restrict the length.
Can that be incorporated into this formula too? Also, where can I find
information on adjusting the codes to match my needs?

"Stefi" wrote:

Apply this formula in Data/Validation/Custom and adjust it to your
requirements as far as upper and lower case and additional characters are
concerned:

=OR(AND(CODE(B3)=65,CODE(B3)<=90),AND(CODE(B3)=9 7,CODE(B3)<=122),AND(CODE(B3)=48,CODE(B3)<=57))


Regards,
Stefi

€˛SusanMurray€¯ ezt Ć*rta:

How do I restrict entry into a cell to only alpha/numeric? I don't want
characters. Or maybe just limited characters like -.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default How do I restrict entry into a cell to only alpha/numeric?

A simple way to determine what characters relate to which codes is to
enter this formula in row 1of a blank column in your sheet:

=CHAR(ROW())

and copy down from row 1 to row 255. You can see the character "0" on
row 48 (which is the CODE referred to above in Stefi's post) and other
number characters appearing in sequence up to row 57. Upper-case A is
65, with Z being 90. Lower-case letters start in row 97 and extend to
row 122.

Hope this helps.

Pete

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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How do I compare the entry in one cell against all other cells Micki Excel Discussion (Misc queries) 1 February 10th 06 02:46 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Data Validation / Cell Entry Steve Jones Excel Discussion (Misc queries) 4 March 23rd 05 03:23 PM
resolving a numeric cell entry for its meaning vtcrob Excel Worksheet Functions 0 February 4th 05 02:23 AM


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