R ramsjce New Member Dec 6, 2012 #1 Hi, I have a column which has only numbers and some of them are zeros. I need the product of the non-zero numbers. Is there a formula I can use?
Hi, I have a column which has only numbers and some of them are zeros. I need the product of the non-zero numbers. Is there a formula I can use?
Hui Excel Ninja Staff member Dec 6, 2012 #2 Ramsjce Firstly, Welcome to the Chandoo.org forums. Try: =PRODUCT(IF(A1:A10>0,A1:A10)) Ctrl+Shift+Enter Adjust range to suit
Ramsjce Firstly, Welcome to the Chandoo.org forums. Try: =PRODUCT(IF(A1:A10>0,A1:A10)) Ctrl+Shift+Enter Adjust range to suit
R ramsjce New Member Dec 6, 2012 #3 I figured it out. I have another column which converts the 0's to 1 using an if condition, and otherwise keeps the value intact. Then I use product of this new column.
I figured it out. I have another column which converts the 0's to 1 using an if condition, and otherwise keeps the value intact. Then I use product of this new column.
Hui Excel Ninja Staff member Dec 6, 2012 #5 If you have numbers less than 0 change it to =PRODUCT(IF(A1:A10<>0,A1:A10)) Ctrl+Shift+Enter