Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff Harmon
 
Posts: n/a
Default How do I get excell to indicate when a number is out of a set ran.

I am trying to set up a spreadsheet which will indicate when the numbers
plugged into the text boxes are outside of a set range. For example, the
range for a certain set of numbers needs to be 5-30, and the number which I
enter in is 33, is there a way to set up the spreadsheet to indicate that the
number is not in that 5-30 range without my having to go back through and
physically check?
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Jeff

plugged in the "text boxes" ... do you mean cells, if so, you can use Data /
Validation to stop incorrect entry, or "post validate" the cells and circle
invalid data using tools / formula auditing / auditing toolbar - circle
invalid data

if you mean actual text boxes from the control toolbox toolbar you can use
code against the textbox1_lostfocus event to check the entry. - right mouse
click on the textbox, choose view code to enter the code, e.g

Private Sub TextBox1_LostFocus()
If TextBox1.Value 30 Or TextBox1.Value < 5 Then MsgBox "wrong"
End Sub

Hope this helps
Cheers
JulieD

"Jeff Harmon" <Jeff wrote in message
...
I am trying to set up a spreadsheet which will indicate when the numbers
plugged into the text boxes are outside of a set range. For example, the
range for a certain set of numbers needs to be 5-30, and the number which
I
enter in is 33, is there a way to set up the spreadsheet to indicate that
the
number is not in that 5-30 range without my having to go back through and
physically check?



  #3   Report Post  
LanceB
 
Posts: n/a
Default

You cound use data|validation, select custom and add the formula
=AND(A14,A1<31)

Lanceb

"Jeff Harmon" wrote:

I am trying to set up a spreadsheet which will indicate when the numbers
plugged into the text boxes are outside of a set range. For example, the
range for a certain set of numbers needs to be 5-30, and the number which I
enter in is 33, is there a way to set up the spreadsheet to indicate that the
number is not in that 5-30 range without my having to go back through and
physically check?

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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
how do i convert the number 1 as 01 or 001 in excell cell Vinayak Excel Worksheet Functions 2 April 4th 23 02:11 PM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 04:22 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"