Adding cells : If one cell is zero, how do I return zero for the whole formula?

MHTMHT

New Member
Joined
Aug 21, 2018
Messages
2
Hi everyone,

I promise I have searched the boards, but I just can't figure out how to solve my problem :eeek:

It looks like I could use SUMIF, but I just can't get my head around how to do it.

Basically I want to sum cells, not the same range, different ones within a column.

The difficulty is that because if the subject I am working on if one of the cells to be added contains a zero, then the result SUM must equal zero, i.e. if there is a zero it nullifies the values of the other.

In the screenshot attached, I want the highlighted cell to return zero because I7=0

Any help would be appreciated!

Screenshot of my sheet:

2ufc7jk.png


view

fD4ZCe
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
=if(or(i4=0,i5=0,i7=0),0,i4+i5+i7)

or

=(I4+I5+I7)*((I4*I5*I7)<>0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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