Hi
cell J6 has the following formula:
=IFERROR(((H6-E$5)/H6),"")
I want to return the result "0" to cell J6 if the result of this formula is a negative number. How do I do that?
Thanks.
Hi
cell J6 has the following formula:
=IFERROR(((H6-E$5)/H6),"")
I want to return the result "0" to cell J6 if the result of this formula is a negative number. How do I do that?
Thanks.
=iferror(iferror((h6-e$5)/h6)^0.5,)^2,"")
Try this:
=IFERROR(IF((H6-E$5)/H6<0,0,(H6-E$5)/H6),"")
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Or:
=IFERROR(MAX((H6-E$5)/H6,0),"")
Sorry but I now think I asked a bit wrong.
If H6 in the formula is a negative number, then I want J6 to show "0"
Agian sorry for asking wrong.
Slightly different!!
=IF(H6<0,0,IFERROR((H6-E$5)/H6,""))
=IFERROR(IF(H6<0,0,(H6-E$5)/H6),"")
Thanks you so much!!
It worked like I wanted.
You're welcome.
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks