![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
I want ot use Data Validation in Cell but my problem is , I want to put "-" in cell also but it not work with Data Validation Assume. I want number 1 to 14 to put in Cell and I want "-" (dash) to put also ( dash putting like no data )
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
I'm afraid you have lost me. Could you give a relavant example?
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Example. in Cell A1 ,The User should puting number 1 - 14 or put - (dash) in Cell A1 ,How can I do this with Data Validation (I use Criteria-Whole number ; number 1 - 14 is accept ,but -(dash) not accept by Data Validation. How can i do this or I have to choose another criteria ?
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Could you place all possible numbers is a list and Then use the "LIst' criteria?
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
Yes , that Idea it work but acctually my number is 1-99999 so its a lot to putting is list . Do you have other Idea ? Thanks.
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=AND(ISNUMBER(A1),OR(A1=-9,AND(A1-INT(A1)=0,A1>0,A1<100000))) |
|
|
|
|
|
|
#7 | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|