Cliff
Any formula that is used in Excel's Data Validation tool must evaluate to TRUE or FALSE.
Also, data validation only works on cells if the data is manually input - not if the data in the cell is a result of a formula, or is entered by a macro, or by copying from another cell, or by filling.
Presumably the adverse budget variances are not input manually but are from a formula?
I don't understand your formula, but if you merely want to be alerted when any manual input to a cell in a particular range(Say A1:A12) has a value of 0 or less, then select cell A1 and put this formula in Data Validation :-
=A1>0
Select A1, Copy and PasteSpecial/Format to A2:A12.
There are other options. Here are some.
For the purpose of illustration, assume that your budget variance amounts are in A1:A12 and the corresponding account numbers are in B2:B12.
WORKSHEET FORMULA
Put this formula in C1 and drag it down to A12 :-
=IF(($A$1:$A1)<0,"A/c " &($B$1:$B1)& " is Overspent","").
CONDITIONAL FORMATTING
1.HIGHLIGHT NEGATIVE & ZERO AMOUNTS IN COLUMN A
Select A1.
Go to Format/Conditional Formatting...
Select Cell Value Is / Less Than or Equal To.
Input 0 in the third box.
Select Format... and set the format you want.
Select A1, Copy, and PasteSpecial/Format to A2:A12.
2.HIGHLIGHT COLUMN B RE NEGATIVE & ZERO AMOUNTS IN COLUMN A.
Select B1.
Go to Format/Conditional Formatting...
Select Formula Is.
Type in this formula : =OR(A1<0,A1=0)
Select Format... and set the format you want.
Select B1, Copy, and PasteSpecial/Format to B2:B12.
Also, instead of Conditional Formatting, a custom number format could be done for Column A (e.g. Zeros & negatives in green(or some other distinctive colour) and/or prefixing/suffixing zeros/negatives with text such as "Overspent").
Celia
The last line of the second paragraph should read :-
Select A1, Copy and PasteSpecial/Validation to A2:A12.
Cliff
I can't follow any of this. It would help if you could post some sample data and the formula's actual syntax (copied and pasted from your workbook).
Celia
Thanks for the reply, I have my journal notifing of overspent accounts by displaying a notice in a cell above the budgets. But what I'm wondering is, can I use data validation to pop up a warning when an account is overspent? I've tried to use the same IF formula I used in the cell above the budgets in data validation but I get an error message. What formula should I use in data validation to notify a user when an account has reached 0 or below?