Filter function alternative in Excel 2019

Dimuster

New Member
Joined
Jan 16, 2023
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I have a excel sheet that imports a large amount of data to a table through power query. In another sheet, there's a cell where I enter a date & need to filter the data in the table with the entered date.

Since the Filter excel function is available in Office 2021 & 365 only, How can I filter my data dynamically as when I change the date in that particular cell?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Welcome to the MrExcel board!

I have done this on a single sheet but you should be able to adapt it to two.

23 01 16.xlsm
ABCDEFGHI
1CodeDateAmountDateCodeDateAmount
2Code 11/01/2023Amount 14/01/2023Code 34/01/2023Amount 3
3Code 23/01/2023Amount 2Code 64/01/2023Amount 6
4Code 34/01/2023Amount 3Code 84/01/2023Amount 8
5Code 41/01/2023Amount 4Code 124/01/2023Amount 12
6Code 53/01/2023Amount 5   
7Code 64/01/2023Amount 6   
8Code 73/01/2023Amount 7   
9Code 84/01/2023Amount 8   
10Code 91/01/2023Amount 9   
11Code 102/01/2023Amount 10   
12Code 113/01/2023Amount 11   
13Code 124/01/2023Amount 12   
Filter
Cell Formulas
RangeFormula
G2:I13G2=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(A$2:A$100)/($B$2:$B$100=$F$2),ROWS(G$2:G2))),"")
 
Upvote 0
Solution
Welcome to the MrExcel board!

I have done this on a single sheet but you should be able to adapt it to two.

23 01 16.xlsm
ABCDEFGHI
1CodeDateAmountDateCodeDateAmount
2Code 11/01/2023Amount 14/01/2023Code 34/01/2023Amount 3
3Code 23/01/2023Amount 2Code 64/01/2023Amount 6
4Code 34/01/2023Amount 3Code 84/01/2023Amount 8
5Code 41/01/2023Amount 4Code 124/01/2023Amount 12
6Code 53/01/2023Amount 5   
7Code 64/01/2023Amount 6   
8Code 73/01/2023Amount 7   
9Code 84/01/2023Amount 8   
10Code 91/01/2023Amount 9   
11Code 102/01/2023Amount 10   
12Code 113/01/2023Amount 11   
13Code 124/01/2023Amount 12   
Filter
Cell Formulas
RangeFormula
G2:I13G2=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(A$2:A$100)/($B$2:$B$100=$F$2),ROWS(G$2:G2))),"")

Thank you very much & this will do what I want.

If I may ask some further, I import the data into the table from data files available in a folder. Is there a way to directly extract only the data relevant to the date I have in the cell (F2 in your example) without extracting the whole data to the excel sheet & apply your formula to the full table?

What I want is the power query output only the data pertaining to the date I want to the Excel sheet.
 
Upvote 0
I would suggest that you start a new thread in the Power Tools forum, provide details of your existing power query and outline your desired modification.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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