LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Data Validation on a calculated cell

Data validation won't work here - it only checks user entries. You can
use a worksheet event macro:

Put this in the worksheet code module (right-click the worksheet tab and
choose View Code):

Private Sub Worksheet_Calculate()
If Me.Range("A3").Value 5000 Then _
MsgBox "A3's too high - do something!"
End Sub



Or, you could attack the problem at its source. If A1 and A2 are both
manually entered, you could use Validation on A1 and A2. Select them
both and choose Data/Validation:

Allow: Custom
Formula: =($A$1*$A$2)<5000


In article ,
Rick wrote:

I want to have data validation on a cell containing a formula. Is it
possible to have validation on the results of a formula and how do you do it?
Here is what I'm doing:

A1 (QTY) A2 (UNIT PRICE) A3 (EXTENDED PRICE)

A3 HAS THIS FORMULA =A1*A2

I want to have any value exceeding $5000 in A3 cause a data validation error
alert to appear with a message instructing what to do.

 
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
List, Data Validation, unlocked cell, protected sheet..... Kane New Users to Excel 6 July 16th 12 09:11 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
6 Data Validation lists depending on 1 cell value beel Excel Discussion (Misc queries) 9 June 10th 05 07:34 PM
How do I validate data from another validation cell? Bo Excel Worksheet Functions 20 May 13th 05 11:10 PM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM


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