![]() |
Do not allow negative numbers in cell
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 |
Answer: Do not allow negative numbers in cell
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. |
Do not allow negative numbers in cell
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 |
Do not allow negative numbers in cell
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 |
Do not allow negative numbers in cell
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 |
Do not allow negative numbers in cell
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 |
All times are GMT +1. The time now is 07:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com