Forum Discussion
Excelstudent
Oct 22, 2022Copper Contributor
Multiply cells but ignore zeros and blanks cells
How do I multiple numbers in different cells BUT ignore blanks and zeros. (Please not this a long excel sheet). I want to multiple all the numbers from cell A1:H1 and put the answer in cell J in tota...
- Oct 22, 2022
Excelstudent If you are on a recent Excel version or on-line, this will work.
Or perhaps better to use:
=PRODUCT(FILTER(A2:H2,A2:H2<>0))
Then you capture everything except zeros and blanks.
OliverScheurich
Oct 22, 2022Gold Contributor
=PRODUCT(IF((A1:H1<>0)*(A1:H1<>""),A1:H1))
An alternative could be this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or Excel 2021.