New FILTER function cannot accept an array in the filter value?

BrianGGG

Board Regular
Joined
Mar 5, 2016
Messages
62
Hi. I have the following reference table:

AB
ItemQuarter
a
b
c
d
e
f
g
h
i
j
k
l
m

<tbody>
[TD="align: center"]135[/TD]

[TD="align: center"]136[/TD]

[TD="align: right"]2[/TD]

[TD="align: center"]137[/TD]

[TD="align: right"]3[/TD]

[TD="align: center"]138[/TD]

[TD="align: right"]3[/TD]

[TD="align: center"]139[/TD]

[TD="align: right"]1[/TD]

[TD="align: center"]140[/TD]

[TD="align: right"]4[/TD]

[TD="align: center"]141[/TD]

[TD="align: right"]1[/TD]

[TD="align: center"]142[/TD]

[TD="align: right"]4[/TD]

[TD="align: center"]143[/TD]

[TD="align: right"]2[/TD]

[TD="align: center"]144[/TD]

[TD="align: right"]3[/TD]

[TD="align: center"]145[/TD]

[TD="align: right"]1[/TD]

[TD="align: center"]146[/TD]

[TD="align: right"]1[/TD]

[TD="align: center"]147[/TD]

[TD="align: right"]1[/TD]

[TD="align: center"]148[/TD]

[TD="align: right"]3[/TD]

</tbody>
Summary





My goal is to "pivot" by the quarter column to create the following output:

EFGH

<tbody>
[TD="align: center"]136[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: center"]2[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: center"]3[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC7CE]#FFC7CE[/URL] , align: center"]4[/TD]

[TD="align: center"]137[/TD]
[TD="align: center"]d[/TD]
[TD="align: center"]a[/TD]
[TD="align: center"]b[/TD]
[TD="align: center"]e[/TD]

[TD="align: center"]138[/TD]
[TD="align: center"]f[/TD]
[TD="align: center"]h[/TD]
[TD="align: center"]c[/TD]
[TD="align: center"]g[/TD]

[TD="align: center"]139[/TD]
[TD="align: center"]j[/TD]
[TD="align: center"][/TD]
[TD="align: center"]i[/TD]
[TD="align: center"][/TD]

[TD="align: center"]140[/TD]
[TD="align: center"]k[/TD]
[TD="align: center"][/TD]
[TD="align: center"]m[/TD]
[TD="align: center"][/TD]

[TD="align: center"]141[/TD]
[TD="align: center"]l[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Summary

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]E137[/TH]
[TD="align: left"]=FILTER(t_Items[Item],t_Items[Quarter]=E136)[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]F137[/TH]
[TD="align: left"]=FILTER(t_Items[Item],t_Items[Quarter]=F136)[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G137[/TH]
[TD="align: left"]=FILTER(t_Items[Item],t_Items[Quarter]=G136)[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]H137[/TH]
[TD="align: left"]=FILTER(t_Items[Item],t_Items[Quarter]=H136)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]




As you can see above, the FILTER function works to get the right answer, but I had to copy and paste the filter function across to all four columns.
I was disappointed to see that I got a #VALUE error when I tried to spill a single formula with the following:

Code:
=FILTER(t_Items[Item],t_Items[Quarter]=E136:H136)

I can't seem to use an array in the FILTER criteria. Is this the expected behavior and there is no way around this?



thanks
BrianGGG
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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