ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   excel validation to 1 decimal place (https://www.excelbanter.com/new-users-excel/14699-excel-validation-1-decimal-place.html)

Tracy

excel validation to 1 decimal place
 
I want to restricted cell input to 1 delimal place ie 77.9.
if user tries to input 77.09 or 77.48 or any figure to two decimal place
they are prevent and must put in ie 77 or 77.4.

Any ideas

gls858

Tracy wrote:
I want to restricted cell input to 1 delimal place ie 77.9.
if user tries to input 77.09 or 77.48 or any figure to two decimal place
they are prevent and must put in ie 77 or 77.4.

Any ideas

You could right click and select format number and then tell
it only 1 decimal. It won't prevent them from putting one in
but it will round it to 1 decimal.

gls858

Debra Dalgleish

You could use a custom data validation:

Select the cell
Choose DataValidation
From the Allow dropdown, choose Custom
In the Formula box, type a formula that refers to the selected cell,
e.g.: =D3=ROUND(D3,1)
(optional) Add an Input Message and/or an Error Alert
Click OK


Tracy wrote:
I want to restricted cell input to 1 delimal place ie 77.9.
if user tries to input 77.09 or 77.48 or any figure to two decimal place
they are prevent and must put in ie 77 or 77.4.

Any ideas



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Peo Sjoblom

That will only change the display, the underlaying value is the same

--

Regards,

Peo Sjoblom


"gls858" wrote in message
...
Tracy wrote:
I want to restricted cell input to 1 delimal place ie 77.9.
if user tries to input 77.09 or 77.48 or any figure to two decimal place
they are prevent and must put in ie 77 or 77.4.

Any ideas

You could right click and select format number and then tell
it only 1 decimal. It won't prevent them from putting one in
but it will round it to 1 decimal.

gls858




Tracy

Thank you Debra.

I see where I went wrong (two = signs)!

Makes sence now.



"Debra Dalgleish" wrote:

You could use a custom data validation:

Select the cell
Choose DataValidation
From the Allow dropdown, choose Custom
In the Formula box, type a formula that refers to the selected cell,
e.g.: =D3=ROUND(D3,1)
(optional) Add an Input Message and/or an Error Alert
Click OK


Tracy wrote:
I want to restricted cell input to 1 delimal place ie 77.9.
if user tries to input 77.09 or 77.48 or any figure to two decimal place
they are prevent and must put in ie 77 or 77.4.

Any ideas



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




All times are GMT +1. The time now is 11:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com