Why is PRODUCT function yielding 0 when multiplying two Boolean cells?

bisel

Active Member
Joined
Jan 4, 2010
Messages
266
Office Version
  1. 365
Platform
  1. Windows
This is crazy.

I am using Boolean logic to in cells L5 through L14. They are all "TRUE"

If I multiply each of those cells together using the formula, =L5*L6*L7*L8*L9*L10*L11*L12*L13*L14, the result is 1. However if I use the Excel function, = PRODUCT(L5:L14), the result is 0.

Does anyone have an explanation for this?
1740683039641.png

Thanks,

Steve
 
Apparently, the SUM and PRODUCT functions ignore Boolean values.
However, you can coerce them to numbers to get them to work like this:
Excel Formula:
=PRODUCT(--L5:L14)
 
Upvote 0
Apparently, the SUM and PRODUCT functions ignore Boolean values.
However, you can coerce them to numbers to get them to work like this:
Excel Formula:
=PRODUCT(--L5:L14)
Your solution works nicely. Thank you. But I marked the solution to use the Boolean function AND instead and it works as well.
 
Upvote 0
Does anyone have an explanation for this?
To answer your actual question from your thread title ..
Why is PRODUCT function yielding 0 when multiplying two Boolean cells?
From the Help for the PRODUCT function:
The PRODUCT function multiplies all the numbers given as arguments and returns the product.
In your example there are no numbers as arguments, only Boolean values.
 
Upvote 0

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