about multipulication of three cells

faheem khan
faheem khan used Ask the Experts™
on
a1*b1*c1= some value,if any cell contains zero than all will be zero send me some solution for zero
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
HI,

What do you intend to do?

Regards
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
Do you want to exclude the cell with zero from the multiplication?
If so, try this Array formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone. i.e. copy the below formula, press F2 in formula cell and paste the formula by pressing Ctrl+V and now hold down the Ctrl+Shift keys together and hit Enter.
When you enter an array formula, you will notice in the formula bar that the formula gets surrounded by the curly braces.

=PRODUCT(IF(A1:C1=0,1,A1:C1))

Open in new window


For details, refer to the attached.
Product-Without-Zeros.xlsx

Author

Commented:
THANKS ALLOT
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome Faheem! Glad I could help.
Rob HensonFinance Analyst

Commented:
Without the Control Shift Enter requirement, you can also use:

=MAX(A1,1)*MAX(B1,1)*MAX(C1,1)

This assumes that all values will be integer greater than 1, ie not a decimal value between 0 and 1.

If decimal values are likely then this will cover that:

=IF(A1<>0,A1,1)*IF(B1<>0,B1,1)*IF(C1<>0,C1,1)
Rob HensonFinance Analyst

Commented:
Please note the accepted solution will only work where the cells are next to each other, ie A1, B1 and C1 or at least on the same row or column. It will still work with blank cells between eg A1 to E1 but B1 and D1 are blank.

However, for cells that are dispersed, eg A1, B3 and C5, it will need to be one of the other options.

Thanks
Rob H
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
Asker endorsed the solution.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial