Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default excel column only numbers

I am trying to set a column to have only numbers and reject or spit out anything else.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default excel column only numbers

Hi Tim
select the column and goto 'Data Validation' and choose 'Number'

HTH
Frank


Tim wrote:
I am trying to set a column to have only numbers and reject or spit
out anything else.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default excel column only numbers

See my response to your previous post, and please only ask the question
once.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tim" wrote in message
...
I am trying to set a column to have only numbers and reject or spit out

anything else.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default excel column only numbers

Hi Tim,
you want Validation

Validate / Validation
http://www.mvps.org/dmcritchie/excel/validation.htm

When doing Data Validation you select a range, the formulas will be
applied to the entire range based on the formula in the active cell,
which would normally be the first cell in the range.

Select Column B
Data, Validation, custom, formula is: .

your test could be
=ISNUMBER(B1)
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Tim" wrote in message ...
I am trying to set a column to have only numbers and reject or spit out anything else.



  #5   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default excel column only numbers


Thanks everyone but i tried each soln and the words stay in the column?


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default excel column only numbers

Until you enter a correct value -- a number, if you hit "Retry"
you type over the selection; if you use "Cancel" button
you can start over as if you had done nothing.

When you create the validation there is additional
information that you can provide by choosing a tab
on that dialog.

What do you want to happen, perhaps you would prefer
and Event macro, where something is actually entered
if you mess up.
http://www.mvps.org/dmcritchie/excel/event.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Tim" wrote in message ...

Thanks everyone but i tried each soln and the words stay in the column?



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default excel column only numbers

Tim wrote:
Thanks everyone but i tried each soln and the words stay in the
column?


Hi Tim
you have to apply the data -validation prior to entering data into the
cells. Applied after entering does not work. Excel will only re-check
after re-entering data in this cell

Frank

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default excel column only numbers

Tim

Data Validation prevents entry of anything but your criteria as pointed out i
other posts.

It will not delete/clear previously entered items.

That will have to be done manually or through VBA.

Gord Dibben Excel MVP

On Thu, 5 Feb 2004 12:16:09 -0800, Tim
wrote:


Thanks everyone but i tried each soln and the words stay in the column?


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default excel column only numbers

To identify cells in Column B that are not numbers you can use
Conditional Formatting
http://www.mvps.org/dmcritchie/excel/condfmt.htm

Select Column B with cell B1 as the active cell
Format, Conditional Formatting, formula is:
=AND(ROW()<1,ISTEXT(B1)
choose format, use patterns tab to supply a background color
such as a pastel color.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Gord Dibben" <gorddibbATshawDOTca wrote
Data Validation prevents entry of anything but your criteria
as pointed out in the other posts.

It will not delete/clear previously entered items.

That will have to be done manually or through VBA.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 04:54 AM
Can excel tell me what numbers in a given column sum to X? Chris Excel Worksheet Functions 1 January 23rd 07 05:27 PM
Excel Formula - Add column of numbers but ignore negative numbers view for Distribution List members Excel Worksheet Functions 1 April 7th 06 03:13 AM
in excel worksheet, add numbers in column k2&k3 monroe Excel Worksheet Functions 1 February 28th 06 12:42 AM
can I increase excel column numbers to more than 256? aw.far Excel Discussion (Misc queries) 1 January 10th 06 09:26 AM


All times are GMT +1. The time now is 12:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"