changing cell formulas

J

JulianP

I wish to change the formula in a group of cells based upon a conditional.
For example if cell A1 is set to X then the formula in cells B2,B3 may be
something. If I change cell A1 to Y then new formula's appear in cells B2,
B3. If this posisble with macros. I have thought of if statements. Is this
the only way
 
E

Eduardo

Hi,
you don't need a macro in cell B2 you can enter

=if($A$1="X",your first formula,if($A$1="Y",your second formula,""))

in the case thar cell a1 is different from X or Y it will leave it blank

if this helps please click yes, thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top