Product of multiple cells if the cell is greater than zero

rcubed1971

New Member
Joined
Jul 30, 2017
Messages
4
I am trying to generate a product of multiple cells (each cell is 2 cells merged into 1 larger cell) but only if the cell is greater than zero.

I cannot seem to generate a table to show what I am trying to accomplish and I cannot seem to insert a picture either.

Here is the formula that I am starting with

=PRODUCT(M15*M17*M19*M21*M23*M25*M27*M29)

(each of the M cells is a combination of 2 cells, example M15 is M15&M16 mergerd)

I need to find the product of the equation but only use the cell if that cell is greater than zero.

I hope this explains it well enough.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Have you considered using a simple IF statement like

=IF(PRODUCT(M15*M17*M19*M21*M23*M25*M27*M29)>0,PRODUCT(M15*M17*M19*M21*M23*M25*M27*M29),"")
 
Upvote 0
M
N
O
15
2​
16
4320​
17
3​
18
19
4​
20
21
5​
22
23
3​
24
25
2​
26
27
3​
28
29
2​
30

<tbody>
</tbody>


o16=PRODUCT(IF(M15:N30>0,M15:N30)) control+shift+enter
 
Upvote 0
By the looks of your formula you created an array, is that correct? I cannot seem to create the array because of the merged cells. CTRL, SHIFT, Enter does not work. Is there another way?
The formula in Message #3 works fine for me.
 
Upvote 0

Forum statistics

Threads
1,215,307
Messages
6,124,168
Members
449,146
Latest member
el_gazar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top