shorten so many if statements

wannabe12

New Member
Joined
Nov 28, 2012
Messages
13
Hi there, in cell E6 I have this formula -

=IF(F6=0,(IF(G6=0,(IF(H6=0,(<wbr>IF(I6=0,(IF(J6=0,(IF(K6=0,(IF(L6=0,(IF(M6=0,(IF(N6=0,(IF(O6=0,(IF(P6=0,(IF(Q6=0,(IF(R6=0,(IF(S6=0,(IF(T6=0,(IF(U6=0,(IF(V6=0,(IF(W6=0,"1","0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")),"0")
<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>

Basically evaluating if a cell is zero and if it is move on to the next cell, and then ***** again.
If all cells equal 0 display 1 otherwise display 0.

There are formulas in these cells so ISBLANK doesnt work.

Im sure theres a much simpler formula that can be used instead.

Any questions just email back.

Merry Christmas (yeah I know its early.lol)

Amish:biggrin:
 
Thank you Sir,

I used the formula you suggest. At first the cells appeared in #VALUE? But when I placed CTRL+SHIFT+ENTER into the formula, it works!

Once more, thanks for the help! I appreciate it.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,216,038
Messages
6,128,443
Members
449,453
Latest member
jayeshw

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