+ Reply to Thread
Results 1 to 13 of 13

Programing Cell

  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    6

    Smile Programing Cell

    please could anybody tell me..how format or programing any cell for only accept numeric value and not alphanumeric value.

    Thank's

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Well, you could use Data>Validation with Allow of either Whole Number or Decimal depending on your needs.

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Use Data Validation
    Allow Custom
    Formula
    Please Login or Register  to view this content.
    HTH
    Carim


    Top Excel Links

  4. #4
    Registered User
    Join Date
    03-07-2007
    Posts
    6

    programin cell

    ok..but can't use two validations in the same cell or not?

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    But ...why ... and what do you mean by two validation formulae ...?

  6. #6
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by Carim
    But ...why ... and what do you mean by two validation formulae ...?
    ok.. firts validation is for tex (lenght of field tex) and second ( don't accept *, - / $ or any alphanumeric caracter).

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can use in the Validation formula ...
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by Carim
    Hi,

    You can use in the Validation formula ...
    Please Login or Register  to view this content.
    this code if for use in the same cell or need create any macro..thank's

  9. #9
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by brutus0616
    this code if for use in the same cell or need create any macro..thank's
    sorry forget ...this code need to accept value zero before any number

  10. #10
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    For your information, if your input is 0123 ... this input is not a number but a text ... !!!

  11. #11
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    You could try following ...
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by Carim
    You could try following ...
    Please Login or Register  to view this content.
    Carim ..after put code excel retum error "You may not use unions, intersections, or array constants for data validations criteria"...

  13. #13
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    An event macro does it for you ...only text made of numbered characters ...
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1