Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
peaspud
 
Posts: n/a
Default Alert in Excel???

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Alert in Excel???

Try this:

For cells A1:A10

Select A1:A10 (with A1 as the active cell)
DataValidation
Allow: Custom
Formula: =COUNTIF($A$1:$A$10,A1)<=3
Click the [OK] button

That will allow the same entry in that range a maximum of 3 times.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
peaspud
 
Posts: n/a
Default Alert in Excel???

Thank for your advice ron,but now that i have put in the suggest formula, it
wont let me put anything in those cells. "A user has restricted values that
can be enterd in this cell" error message appears?? im sure i have entered it
correctly??
Thanks

"Ron Coderre" wrote:

Try this:

For cells A1:A10

Select A1:A10 (with A1 as the active cell)
DataValidation
Allow: Custom
Formula: =COUNTIF($A$1:$A$10,A1)<=3
Click the [OK] button

That will allow the same entry in that range a maximum of 3 times.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Alert in Excel???

You should only get that message if the same value is already in the
referenced range 3 or more times. If that is not the case, then the
validation formula needs to be adjusted.

However, if you only want the user to be warned, but still allowed to enter
the value then:

Select the range to be validated.
DataValidation
(adjust your validation constraints, if necessary)
Select the "Error Alert" tab
Set the Style to either Warning or Information.
Click the [OK] button.

Now, if users enter a value for the 4th time...they will only be notified of
the situation, but still allowed to enter the same value.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

Thank for your advice ron,but now that i have put in the suggest formula, it
wont let me put anything in those cells. "A user has restricted values that
can be enterd in this cell" error message appears?? im sure i have entered it
correctly??
Thanks

"Ron Coderre" wrote:

Try this:

For cells A1:A10

Select A1:A10 (with A1 as the active cell)
DataValidation
Allow: Custom
Formula: =COUNTIF($A$1:$A$10,A1)<=3
Click the [OK] button

That will allow the same entry in that range a maximum of 3 times.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
peaspud
 
Posts: n/a
Default Alert in Excel???

Thanks ron,
that has helped.i now understand how it works. One more question (sorry for
being so cheeky) if i wanted to do the same with words rather than
numbers,how would i correct the foumula.
e.g. If the word "Dad" was used more than twice.
Thanks again for your help.
Greg.Nixon

"Ron Coderre" wrote:

You should only get that message if the same value is already in the
referenced range 3 or more times. If that is not the case, then the
validation formula needs to be adjusted.

However, if you only want the user to be warned, but still allowed to enter
the value then:

Select the range to be validated.
DataValidation
(adjust your validation constraints, if necessary)
Select the "Error Alert" tab
Set the Style to either Warning or Information.
Click the [OK] button.

Now, if users enter a value for the 4th time...they will only be notified of
the situation, but still allowed to enter the same value.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

Thank for your advice ron,but now that i have put in the suggest formula, it
wont let me put anything in those cells. "A user has restricted values that
can be enterd in this cell" error message appears?? im sure i have entered it
correctly??
Thanks

"Ron Coderre" wrote:

Try this:

For cells A1:A10

Select A1:A10 (with A1 as the active cell)
DataValidation
Allow: Custom
Formula: =COUNTIF($A$1:$A$10,A1)<=3
Click the [OK] button

That will allow the same entry in that range a maximum of 3 times.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Alert in Excel???

If you mean that you only want to ensure that the word "Dad" is not entered
more than twice, then try this formula in the Data Validation:

Formula: =COUNTIF($A$1:$A$10,"Dad")<=2

I hope that helps?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

Thanks ron,
that has helped.i now understand how it works. One more question (sorry for
being so cheeky) if i wanted to do the same with words rather than
numbers,how would i correct the foumula.
e.g. If the word "Dad" was used more than twice.
Thanks again for your help.
Greg.Nixon

"Ron Coderre" wrote:

You should only get that message if the same value is already in the
referenced range 3 or more times. If that is not the case, then the
validation formula needs to be adjusted.

However, if you only want the user to be warned, but still allowed to enter
the value then:

Select the range to be validated.
DataValidation
(adjust your validation constraints, if necessary)
Select the "Error Alert" tab
Set the Style to either Warning or Information.
Click the [OK] button.

Now, if users enter a value for the 4th time...they will only be notified of
the situation, but still allowed to enter the same value.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

Thank for your advice ron,but now that i have put in the suggest formula, it
wont let me put anything in those cells. "A user has restricted values that
can be enterd in this cell" error message appears?? im sure i have entered it
correctly??
Thanks

"Ron Coderre" wrote:

Try this:

For cells A1:A10

Select A1:A10 (with A1 as the active cell)
DataValidation
Allow: Custom
Formula: =COUNTIF($A$1:$A$10,A1)<=3
Click the [OK] button

That will allow the same entry in that range a maximum of 3 times.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"peaspud" wrote:

HI,
Is there a function in excel that alerts you if you have entered a number
(or word!) more than an agreed amount of times??
e.g. If you have agreed not to input the number 7 more than 3 times in a
selected range, but then do so, will excel inform you??
I know it sounds weird but im doing a dream team at work and i need as much
help as i can get!!
Thanks

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
unhide menu bar in excel - just disappeared Sean Setting up and Configuration of Excel 12 April 4th 23 10:19 AM
convert pocket excel back to standard excel kevroyal Excel Discussion (Misc queries) 1 February 16th 06 11:35 AM
Can Excel alert me to a duplicate entry? PeterM Excel Discussion (Misc queries) 2 December 20th 05 08:18 PM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 12:03 AM.

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"