Dynamic Filter Formula

irfman

New Member
Joined
Jan 1, 2019
Messages
19
Office Version
  1. 2021
Hi, I need your help with a dynamic filter formula based on the values in cells AE2 (Type) and AF2 (Date). The filter should return values that match the selection criteria both horizontally and vertically, with the output displayed in cell A1. I'm not sure if this is possible, but I would appreciate your support.

Regards
 

Attachments

  • 1.jpg
    1.jpg
    175.2 KB · Views: 12
Something like this,
Book1
ABCDEFG
1ABUYAEAF
2TypeCITY23-Dec24-DecTypeDate
3Region 1Newyork356,185,131585,268,748Region 123-Dec
4Region 1London261,195,67331,808,836
5Region 1Oslo56,072,59949,343,517
6Region 1Sydney117,926,59787,492,786
7Region 2Berlin25,880,26926,256,754
8Region 2Madrid11,236,12111,114,443
9Region 2Mumbai7,061,8436,973,618
10Region 2Tokyo14,568,31218,688,591
11
12
13
14Answer
15Region 1Newyork356,185,131
16Region 1London261,195,673
17Region 1Oslo56,072,599
18Region 1Sydney117,926,597
19
20Region 1Newyork356,185,131
21Region 1London261,195,673
22Region 1Oslo56,072,599
23Region 1Sydney117,926,597
Sheet1
Cell Formulas
RangeFormula
A20:A23A20=FILTER(A2:A10, (A2:A10=F3) * (INDEX(C2:D10, 0, MATCH(G3, C2:D2, 0)) <> ""))
B20:B23B20=FILTER(B2:B10, (A2:A10=F3) * (INDEX(C2:D10, 0, MATCH(G3, C2:D2, 0)) <> ""))
C20:C23C20=FILTER(FILTER(B2:D10, A2:A10=F3), B2:D2=G3)
Dynamic array formulas.
 
Upvote 0
Another option:

Book1
ABCDEFG
1TypeCITY23-Dec24-DecTypeDate
2Region 1Newyork356,185,131.00585,268,748.00Region 123-Dec
3Region 1London261,195,673.0031,808,836.00
4Region 1Oslo56,072,599.0049,343,517.00
5Region 1Sydney117,926,597.0087,492,786.00
6Region 2Berlin25,880,269.0026,256,754.00
7Region 2Madrid11,236,121.0011,114,443.00
8Region 2Mumbai7,061,843.006,973,618.00
9Region 2Tokyo14,568,312.0018,688,591.00
10
11
12
13Answer
14Region 1Newyork356,185,131.00
15Region 1London261,195,673.00
16Region 1Oslo56,072,599.00
17Region 1Sydney117,926,597.00
18
Sheet3
Cell Formulas
RangeFormula
A14:C17A14=CHOOSECOLS(FILTER(A2:D9,A2:A9=F2),1,2,MATCH(G2,A1:D1,0))
Dynamic array formulas.
 
Upvote 0

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