how to Format Cells so they only except numbers

Rob Nash

New Member
Joined
Nov 14, 2002
Messages
4
How do i make a cell only except numbers, i.e. you carn't type text in , it will only allow numeric values to be entered.
Cheers
Jason
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
On 2002-11-17 08:30, Rob Nash wrote:
How do i make a cell only except numbers, i.e. you carn't type text in , it will only allow numeric values to be entered.
Cheers
Jason

Let A2:A20 be the range of interest.

(1.) Select A2:A20.
(2.) Activate Data|Validation.
(3.) Choose Custom for Allow.
(4.) Enter the following in the Formula box:

=ISNUMBER(A2)

(5.) Click OK.

Note. The above setup can be defused by Copy & Paste.
 
Upvote 0
Rob,
You can also use Data, Validation and than goto "decimal" in the drop down box "allow". You can extend this with an error allert when text is inputed. You do this by going to the eror alert in the menu.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top