Share via

Circular reference in Excel while using the "if" statement

Anonymous
2017-01-20T20:32:37+00:00

I am trying to use an "if" statement and it goes like this: Cell "1" has an "if" statement which is asking whether cell "2" is less than zero.  If cell "2" IS less than zero, I would like that negative number to be reflected in cell "1".  If cell "2" is greater than zero, I would like cell "1" to display a zero.  How do I do that?  All the formula examples I have found have static "then" actions, like "yes" and "no", etc.  I have not seen anything similar to my issue.

Thanks for any help you can pass along...I'm obviously lost.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-01-20T20:46:50+00:00

Hi,

Note that the logic for your question doesn't say what to do if cell 2 equals zero. This looks at B2 and can go in any cell except B2.

=IF(B2<0,B2,IF(B2>0,0,""))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-01-20T21:15:12+00:00

    Thank you!  Worked perfectly!

    Was this answer helpful?

    0 comments No comments