Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Ideas on how to restrict a entry

How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Ideas on how to restrict a entry

Can you show us your COUNTIF formula?

--
Rick (MVP - Excel)


"Alexandra" wrote in message
...
How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Ideas on how to restrict a entry

Hi Alexandra

Spreadsheet cells are close to useless when it comes to rejecting entries. A
testbox on a userform can do this.

Try
=Countif(range, "16F")+Countif(range,"16-F")

HTH. Best wishes Harald



"Alexandra" wrote in message
...
How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Ideas on how to restrict a entry

It is =countif(a1:a200,"16F")

"Rick Rothstein" wrote:

Can you show us your COUNTIF formula?

--
Rick (MVP - Excel)


"Alexandra" wrote in message
...
How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Ideas on how to restrict a entry

Thanks it worked!

"Harald Staff" wrote:

Hi Alexandra

Spreadsheet cells are close to useless when it comes to rejecting entries. A
testbox on a userform can do this.

Try
=Countif(range, "16F")+Countif(range,"16-F")

HTH. Best wishes Harald



"Alexandra" wrote in message
...
How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Ideas on how to restrict a entry


"Alexandra" wrote in message
...
Thanks it worked!


Cool :-)

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Ideas on how to restrict a entry


You can use Data Validation to do this. Select the cell in which a
dash must not be entered. Then, go to the Data menu and choose
Validation. There, select "Custom" from the Allow list and enter the
following formula

=ISERROR(FIND("-",A1))

Change the A1 to the cell being validated.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)





On Thu, 28 May 2009 09:44:02 -0700, Alexandra
wrote:

How can I restrict someone from typing a dash?
For example entry should be 16F not 16-F

Or how can I make my COUNTIF formula to count either entry with or without
dash?

Thanks, Alexandra

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
How do I restrict data entry to one of two columns but not both? Gillian Excel Discussion (Misc queries) 4 July 16th 08 06:06 PM
How do I restrict data entry to one of two columns Gillian Excel Discussion (Misc queries) 2 July 16th 08 02:07 PM
Restrict entry types Dolalu Excel Discussion (Misc queries) 1 November 29th 05 06:24 PM
can i restrict data entry from certain columns surgeandoj Excel Discussion (Misc queries) 1 July 8th 05 05:28 PM
Any ideas for a more customized data entry? FBB Excel Worksheet Functions 2 July 3rd 05 03:50 PM


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

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

About Us

"It's about Microsoft Excel"