• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Replacing a formula value if it is negative with another cell value

Matt_Straya

Member
Hi,
I have this formula
Code:
=IFERROR((C3-D3)/B3,0)*E3
that may result in a negative number ($). If it does I want to display the value in B3.

Grateful for any ideas
 

Attachments

  • HelpChandoo.xlsx
    8.7 KB · Views: 8
Quick and dirty, perhaps this one
=IF(IFERROR((C3-D3)/B3,0)*E3<0,B3, IFERROR((C3-D3)/B3,0)*E3)

But I don't like it very much. I'm sure there is a more elegant one possible. Can't look at your data for the moment to evaluate it.
 
Back
Top