• 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.

Multiplying all Non-Zero numbers in a column

ramsjce

New Member
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?
 
Ramsjce


Firstly, Welcome to the Chandoo.org forums.


Try: =PRODUCT(IF(A1:A10>0,A1:A10)) Ctrl+Shift+Enter


Adjust range to suit
 
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.
 
If you have numbers less than 0 change it to

=PRODUCT(IF(A1:A10<>0,A1:A10)) Ctrl+Shift+Enter
 
Back
Top