I want to multiply the value in 2 cells in a row but only if both cells contain a positive number. If either cell or both cells contains a negative number then I want the output cell to display as 0. Can this be done?
Thanks,
Eric
I want to multiply the value in 2 cells in a row but only if both cells contain a positive number. If either cell or both cells contains a negative number then I want the output cell to display as 0. Can this be done?
Thanks,
Eric
Do you mean something like this?
Row\Col A B C D 1 Num1 Num2 If both > 0 2 4 1 4=IF(AND(A2>0,B2>0),A2*B2,0) 3 1 4 4 4 -2 -3 0 5 3 -3 0 6 4 5 20 7 5 0 0 8 4 3 12 9 -3 5 0 10 0 -1 0
Dave
Or you may try it like this......
Assuming the cells in the interest are A2 and B2, then try...
OR![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by sktneer; 07-24-2016 at 11:41 PM.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
Thank you. I figured out a work around but this will be useful in the future.
Regards,
Eric
If your issue is resolved, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
Done. Thanks again. I will be back.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks