Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I restrict entry of positive numbers in a cell using data validation?
In other words I want only to be able to enter numbers that are less than 0. Thanks. -- JNW |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Data/ Validation/ Settings: Allow: Decimal/ less than/ 0
-- David Biddulph "JNW" wrote in message ... How can I restrict entry of positive numbers in a cell using data validation? In other words I want only to be able to enter numbers that are less than 0. Thanks. -- JNW |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Much easier than mine!
-- JNW "David Biddulph" wrote: Data/ Validation/ Settings: Allow: Decimal/ less than/ 0 -- David Biddulph "JNW" wrote in message ... How can I restrict entry of positive numbers in a cell using data validation? In other words I want only to be able to enter numbers that are less than 0. Thanks. -- JNW |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hey-
I found it. Select custom and if I am validating C3 the formula needs to be =and(c3<0,isnumber(c3)) -- JNW "JNW" wrote: How can I restrict entry of positive numbers in a cell using data validation? In other words I want only to be able to enter numbers that are less than 0. Thanks. -- JNW |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hope this helps...
Sub DelZeros() For X = 1 To 1 Dim redRng As Range Set redRng = Range("A1", Range("A100").End(xlUp)) For Each Cell In redRng If Cell.Value <= 0 Then Cell.Value = 0 End If Next Cell Next X End Sub -- RyGuy "JNW" wrote: How can I restrict entry of positive numbers in a cell using data validation? In other words I want only to be able to enter numbers that are less than 0. Thanks. -- JNW |
#6
![]() |
|||
|
|||
![]()
Hi JNW,
You can easily restrict the entry of positive numbers in a cell using data validation in Microsoft Excel. Here are the steps:
Now, if you try to enter a positive number in the selected cell or range of cells, you will see an error message and the entry will be rejected.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2002 : Convert Positive Numbers to Negative Numbers ? | Excel Discussion (Misc queries) | |||
Set negative numbers to zero. Do not calculate with negative valu | Excel Discussion (Misc queries) | |||
change 2000 cells (negative numbers) into positive numbers | Excel Worksheet Functions | |||
Excel Formula - Add column of numbers but ignore negative numbers | Excel Worksheet Functions | |||
convert negative numbers to positive numbers and vice versa | Excel Worksheet Functions |