Help using FILTER

Paulypaul

New Member
Joined
Jan 30, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I'd like to add a dashboard tab to my Excel file, which will display filtered data from rows in another tab, dependent upon their date range (start and finish date) values are still valid for this week (e.g. they are still live/have started but not reached the finished date yet).
The purpose of this is to show management a current list of live actions with their corresponding Task name, status, etc. I have highlighted in yellow the columns I wish to display for each Action row.

I've tried referencing two manually-added start and finish dates in my dashboard (e.g. "29/01/2024" & "04/02/2024"), using this formula..
=FILTER(Actions!A:Q,(ROW(Actions!A:Q)=1)+(A1<=Actions!A:A)*(A2>=Actions!B:B))

I know this formula is both incorrect and doesn't select which columns of data I want to display.

Is anyone able to help me? That would be fantastic. Many thanks in advance.

Screenshot 2024-01-31 124857.png
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi & welcome to MrExcel.
How about
Excel Formula:
=FILTER(choosecols(Actions!A2:Q1000,1,2,5,6,8,9,10,16,17),(A1<=Actions!K2:K1000)*(A2>=Actions!L2:L1000))
 
Upvote 0
=FILTER(Actions!A:Q,(ROW(Actions!A:Q)=1)+(A1<=Actions!A:A)*(A2>=Actions!B:B))
Welcome to the forum -

Check this and revert -

Excel Formula:
=Filter(FILTER(Actions!A:Q,(A1<=Actions!A:A)*(A2>=Actions!B:B)),{1,1,0,0,1,1,0,1,1,1,0,0,0,0,0,1,1})
 
Upvote 0
Try:

Excel Formula:
=CHOOSECOLS(FILTER(Actions!A:Q,(Actions!K:K<=A2)*(Actions!L:L>=A1)),1,2,5,6,8,9,10,16,17)
 
Upvote 0
=Filter(FILTER(Actions!A:Q,(A1<=Actions!A:A)*(A2>=Actions!B:B)),{1,1,0,0,1,1,0,1,1,1,0,0,0,0,0,1,1})
Just realised after looking at solutions @Fluff and @RoryA gave
It has to be -

Excel Formula:
=Filter(FILTER(Actions!A:Q,(A1<=Actions!K:K)*(A2>=Actions!L:L)),{1,1,0,0,1,1,0,1,1,1,0,0,0,0,0,1,1})
 
Upvote 0
Pile on
MrExcelPlayground20.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
11/31/2024
2ActionAreaJunkJunkerTaskIDOwnerActorProject1Project2Project3StartEndCommentsStatuImpactRiskMitigationActionAreaTaskIDOwnerProject1Project2Project3RiskMitigation
3Title1Area1AACM01FredJunk1checkcheckex1/29/20241/29/2024blahblayesLowStuff1Title2Area2CM02FredcheckcheckexLowStuff2
4Title2Area2AACM02FredJunk2checkcheckex1/24/20242/19/2024blahblayesLowStuff2Title3Area3CM03FredcheckcheckexLowStuff3
5Title3Area3AACM03FredJunk3checkcheckex1/29/20242/19/2024blahblayesLowStuff3Title5Area5CM05FredcheckcheckexLowStuff5
6Title4Area4AACM04FredJunk4checkcheckex3/4/20244/12/2024blahblayesLowStuff4Title8Area8CM08FredcheckcheckexLowStuff8
7Title5Area5AACM05FredJunk5checkcheckex1/29/20247/1/2024blahblayesLowStuff5
8Title6Area6AACM06FredJunk6checkcheckex2/2/20242/8/2024blahblayesLowStuff6
9Title7Area7AACM07FredJunk7checkcheckex2/12/20242/12/2024blahblayesLowStuff7
10Title8Area8AACM08FredJunk8checkcheckex1/3/20243/8/2024blahblayesLowStuff8
11Title9Area9AACM09FredJunk9checkcheckex3/11/20243/11/2024blahblayesLowStuff9
12Title10Area10AACM10FredJunk10checkcheckex4/4/20244/12/2024blahblayesLowStuff10
13Title11Area11AACM11FredJunk11checkcheckex4/15/20244/15/2024blahblayesLowStuff11
14Title12Area12AACM12FredJunk12checkcheckex5/2/20245/10/2024blahblayesLowStuff12
15Title13Area13AACM13FredJunk13checkcheckex5/13/202412/1/2024blahblayesLowStuff13
16Title14Area14AACM14FredJunk14checkcheckex5/28/202411/1/2024blahblayesLowStuff14
17Title15Area15AACM15FredJunk15checkcheckex6/10/202410/1/2024blahblayesLowStuff15
Sheet28
Cell Formulas
RangeFormula
S1S1=TODAY()
S2:AA6S2=CHOOSECOLS(VSTACK(A2:Q2,FILTER(A3:Q17,(K3:K17<=S1)*(L3:L17>=S1))),1,2,5,6,8,9,10,16,17)
Dynamic array formulas.
 
Upvote 0
I got the impression that they wanted to pull in the column headers. Maybe so it would be easier to change what columns are output in the report. But the question was a bit foggy to me.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=FILTER(choosecols(Actions!A2:Q1000,1,2,5,6,8,9,10,16,17),(A1<=Actions!K2:K1000)*(A2>=Actions!L2:L1000))
Hi.
I switched the greater than/lesser than signs and it worked perfectly. I really appreciate that. Thank you very much.

Is there a way I can only display the Actions that are in 1 of the 3 projects (columns H, I or J)?
That way I can create 3 versions of the formula, allowing me to display actions from the 3 project separately.

Many thanks again.
 
Upvote 0
The 1,2,5,6,8,9,10,16,17 part is the column numbers to return data from, so you can add/remove those as needed.
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,966
Members
449,094
Latest member
Anshu121

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