Removing cells from a range in a formula

erock24

Well-known Member
Joined
Oct 26, 2006
Messages
1,163
I am using this formula:

=IF(SUMPRODUCT((ABS(D$17:D$70)>=8)+0),"ERROR","OK")

However, I don't want the formula to evaluate D20&D21.
When I try to use this range- .....((ABS(D17:D19,D22:D70)>=8).....
it tells me I have too many arguments?

The formula itself works perfect, I use it on another sheet. But to fit the current application I need to exclude thes 2 cells.
Any Ideas?
Thanks for your time and help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
this work?

=IF(SUMPRODUCT((ABS(D$17:D$19:D$22:D$70)>=8)+0),"ERROR","OK")
 
Upvote 0
It doesn't seem to be. Formula is not erroring out but is returning "error" which it shouldn't be if it wasn't taking into account d20and21. When I delete what I have in those two cells you're formula gives "ok" which means it is not excluding those 2 cells

I have large numbes in d20 and d21 whoose sum always equal zero.
 
Upvote 0
I am using this formula:

=IF(SUMPRODUCT((ABS(D$17:D$70)>=8)+0),"ERROR","OK")

However, I don't want the formula to evaluate D20&D21.
When I try to use this range- .....((ABS(D17:D19,D22:D70)>=8).....
it tells me I have too many arguments?

The formula itself works perfect, I use it on another sheet. But to fit the current application I need to exclude thes 2 cells.
Any Ideas?
Thanks for your time and help.

Control+shift+enter:

=(MAX(IF(ISNUMBER(CHOOSE({1,2},D17:D19,D22:D70)),ABS(CHOOSE({1,2},D17:D19,D22:D70))))>=8)+0

Custom format the formula cell as:

[=0]"OK";[=1]"ERROR"
 
Upvote 0
Aladin,

Thanks for the formula

This array seems to have done the trick.

{=IF((MAX(IF(ISNUMBER(CHOOSE({1,2},D17:D19,D22:D70)),ABS(CHOOSE({1,2},D17:D19,D22:D70))))>=10)+0=0,"OK","Error")}
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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