ARRAY FORMULAS IN ADVANCED FILTER ("CRITERIA")

galileogali

Well-known Member
Joined
Oct 14, 2005
Messages
748
HELP ALADIN!!!!!
WHERE IS MR. AKYUREK?


ADVANCED FILTERS: CRITERIA WITH FORMULAS
My questions:
1) CAN BE USED ARRAYS FORMULAS TO DEFINE CRITERIA OF ADVANCED FILTERS?


IF THE ANSWER IS “NOT”, IT IS TO ME SUFFICIENT. IF THE ANSWER IS “YES”, CAN CONTRIBUTE AN EXAMPLE?

2) CAN EXIST CASES IN THAT the DEFINITION OF CRITERIA MUST BE ADAPTED ACCORDING TO IS to FILTERING -in-place or to FILTERING in another place?


IF THE ANSWER IS “NOT”, IT IS TO ME SUFFICIENT. IF THE ANSWER IS “YES”, CAN CONTRIBUTE AN EXAMPLE?
GalileoGali
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Not being Aladin, I'm tempted not to answer, but what the hell...

...why don't you tell us what you are actually trying to do?
 
Upvote 0
Excuse Me.

What it interests to me is a theoretical answer. SIMPLY: CAN BE USED ARRAY formulas lIKE CRITERIA IN ADVANCED FILTERS?


(The replacement by SUMAPRODUCTO WORKS. THAT ALREADY)

THANKS

GALI
 
Upvote 0
Excuse Me.

What it interests to me is a theoretical answer. SIMPLY: CAN BE USED ARRAY formulas lIKE CRITERIA IN ADVANCED FILTERS?


(The replacement by SUMAPRODUCTO WORKS. THAT ALREADY)

THANKS

GALI

The answer is no. The proc for Advanced Filter runs the formula specified in the criteria range on every record. If the formula is a formula that requires control+shift+enter, the proc appears not to know what to do with "control+shift+enter." A limited search did not reveal any explicit note on having control+shift+enter'ed formulas in the criteria range. The issue is not that it has a problem with array objects as the case with SumProduct as you noticed proves. The following example corroborates this observation:
AdvFilterWithArrayFormulas.xls
ABCDEF
10.3
2XY
3a2.3FALSE
4a4.2XY
5b3.4a4.2
6b5.2b3.4
7c4.2b5.2
8a3.8c4.2
9a2.9
10
Sheet1


The formula in the criteria range, in F3, is:

=EVAL(($B3-AVERAGE(IF($A$3:$A$9=A3,$B$3:$B$9)))>=$E$1)

If you remove EVAL...

=($B3-AVERAGE(IF($A$3:$A$9=A3,$B$3:$B$9)))>=$E$1

and confirm the formula with control+shift+enter, an empty result list is all what we get.

Conclusion: No CSE-formulas in the criteria range.

Note that this also confirms Paddy's experience reported in your repost-thread.
 
Upvote 0

Forum statistics

Threads
1,223,959
Messages
6,175,645
Members
452,663
Latest member
MEMEH

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