Change text based on other cell criteria?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If d1 - c1 > 30 then I want to change the value of F1 -
how do I do this?
 
Hi,
Not sure where you are going with this question, but...

Assume that D1=50 and C1=10.
In F1 enter: IF(D1-C1>30,"Change","")
The result will be the word "Change" in F1.
If D1-C1 is not > 30, then F1 will remain blank.
 
You cannot "push" a value to another cell using a formula.

Formulas can only "pull" to the cell in which they are written.

In F1 enter a formula.

=IF(D1-C1>30,"greater than 30","no change")

You could use VBA code to change the value in F1 based on the results of your
D1-C1 value.


Gord Dibben MS Excel MVP
 

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

Back
Top