Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Custom Data Validation

I am trying to force a user to enter a value only if certain criteria are
present in the worksheet.

Example:
IF cells D11:D32 contain the letter "z" and IF the SUM(C37:C42)=0 I want my
user to be prompted to enter a quantity in (at least) C37 that is a whole
number.

I'm at a loss as to how to set this up.

Help?

Thanks,

Steve
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Custom Data Validation

Data validation can't force a user to enter a value in a cell, it can
only validate what they've typed in a cell.

Perhaps you could use a formula to display a message in another cell,
under those conditions, e.g.:

=IF(AND(COUNTIF($D$11:$D$32,"z"),SUM($D$37:$D$42)= 0),
"Enter a value in cell C37","")

Or, use conditional formatting to black out some cells under those
conditions, using a similar formula.

Otherwise, you could use programming to check the cells and display a
message.

Steve E wrote:
I am trying to force a user to enter a value only if certain criteria are
present in the worksheet.

Example:
IF cells D11:D32 contain the letter "z" and IF the SUM(C37:C42)=0 I want my
user to be prompted to enter a quantity in (at least) C37 that is a whole
number.

I'm at a loss as to how to set this up.

Help?

Thanks,

Steve



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Custom data validation Guy Normandeau Excel Discussion (Misc queries) 3 April 18th 06 04:12 PM
Case Sensitivity problem with data validation Upya Excel Worksheet Functions 3 October 7th 05 01:30 AM
Data Validation - Scroll in the formula bar for a custom criteria Hanno Scholtz Excel Worksheet Functions 3 September 22nd 05 02:11 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Custom Format and Data Validation Q John Excel Worksheet Functions 1 January 6th 05 05:56 PM


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