Robust formula

Peggy2015

Board Regular
Joined
Oct 19, 2015
Messages
109
Hello,

I have a formula:

=IF(OR(E6<>0,F6<>0,G6<>,H6<>0,I6<>0,J6>0,K6<>0,L6<>0,M6<>0,N6<>0,O6<>0,P6<>0,Q6<>0),"!"," ")

There must be an easier way to write this formula that does better job?

Thanks,
Peggy
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
"G6<>" and "J6>0" I'm going to assume are typos. How about:

Code:
=IF(SUMPRODUCT(--($E6:$Q6<>0))>0,"!"," ")

WBD
 
Upvote 0
Hi,

Also assuming G6 and J6 are typos in your formula:

=IF(SUM(E6:Q6),"!","")

You had a SPACE " " as Value if False, I've used a Blank "" , change it if you want.
 
Upvote 0
Hi,

Also assuming G6 and J6 are typos in your formula:

=IF(SUM(E6:Q6),"!","")

You had a SPACE " " as Value if False, I've used a Blank "" , change it if you want.

E6 = 1, F6 = -1, G6:Q6 = 0 and it doesn't produce the correct result.

WBD
 
Upvote 0
E6 = 1, F6 = -1, G6:Q6 = 0 and it doesn't produce the correct result.

WBD

You're right, forgot about possible Negatives...

May be this then:

=IF(COUNTIFS(E6:Q6,"<>0",E6:Q6,"<>"&""),"!","")
 
Last edited:
Upvote 0
Or, if the range could Never have blank cells:

=IF(COUNTIF(E6:Q6,"<>0"),"!","")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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