Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Kebbon" wrote...
How might I force a user to enter a future effective date if they make an entry in another cell for future price? The more annoying, less effective way involves using event handlers, several of them in this case: Change, Calculate, Deactivate and SelectionChange. Each of these would make the required entry (date) the active cell if the corresponding cell (price) contained anything. The other way is to use additional terms in formulas. If both date and price would be numbers, then change every existing formula that normally returns numeric values to =(original_formula)/(COUNTA(date_entry)=COUNTA(price_entry)) to make all these cells evaluate to #DIV/0! if one or the other BUT NOT BOTH contained an entry; and change every formula that normally returns text values to =(original_formula)&LEFT("",(COUNTA(date_entry)=CO UNTA(price_entry))-1) to make all these cells evaluate to #VALUE! if one or the other BUT NOT BOTH contained an entry. If the macro-based solution is sufficiently annoying, your users will disable macros, which is why macro-based enforcement is often if not usually hopeless. OTOH, ensuring garbage out when fed garbage in has, at least in my experience, proven to do a much better job of motivating users to make complete and valid entries. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default colour in cell based on specific entry | Excel Worksheet Functions | |||
auto population based on single cell entry | Excel Discussion (Misc queries) | |||
Validation to force entry in a cell | Excel Worksheet Functions | |||
Formula based on a cell entry | Excel Discussion (Misc queries) | |||
Prevent entry based on another cell value | Excel Worksheet Functions |