eg
A3:
=100-(A1+A2)
Will return the value in A3 that causes A1+A2+A3 to equal 100
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
Hi
not really possible within cells as you don't know at which point you
should check the values if you want to change them. As any change would
leed to a wrong result.
some workaround ideas:
- use a userform for this and do the checking if the user clicks on the
o.k button
- use a separate cell which issues a warning message if the Sum is not
equal to 100 (add a conditional format to this)
- use a check in your workbook_beforesave event to ensure that only
valid entries are saved