Additional criteria in FILTER formula

ozil

New Member
Joined
Mar 25, 2025
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hi
I’m using filter function and its working but now I’m thinking how to get returned column 2 as per formula for values >800?

So here is formula. And the last two 6 is returned column and -1 sorted ascending but i would see only over 800

=SORT(CHOOSECOLS(FILTER(DATA[[Region]:[WTD 3 Average]],DATA[Region]=Sheet1!N7),1,2,3,4,5,19),6,-1)
 
How do i copy this into excel now ? So what I would need is filtering as you done I think, and two drop down list for filtering one for months and see values for every region and one for regions so i can see all regions or only selected in region2 and filter by months? And values only over >$600
As my spreadsheet is for about 400 rows. Not sire if explained well.
 
Upvote 0
thank you. how do i copy this now into excel ?
so what i would need is the filtering as you done? and then last column return depend of 2 drop down lists. one for month OT Cost, and one for regions when regions not selected then see all regions. and OT Cost values over >600. my spreadsheet has about 360 rows to filter.
 
Upvote 0
Maybe:

MrExcelPlayground24.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASAT
1RegionRegion2HUBEmployee NameRoleContract30-DecOT 30-Dec6-JanOT 06-Jan13-JanOT 13-Jan20-JanOT 20-Jan27-JanOT 27-JanJan Total HoursJan Average HoursJan Total OT HoursJan OT CostColumn73-FebOT 03-Feb10-FebOT 10-Feb17-FebOT 17-Feb24-FebOT 24-FebFeb Total HoursFeb Average HoursFeb Total OT HoursFeb OT CostColumn163-MarOT 03-Mar10-MarOT 10-Mar17-MarOT 17-Mar24-MarOT 24-MarMar Total HoursMar Average HoursMar Total OT HoursMar OT Cost
2SouthSouth CentralBBBoooooWRH4040042.752.75466422466216.7543.3510.7570044442.752.7541.51.539.7501684214.2540040.50.54004110121.540.51.524.375
3SouthSouth WestAAAggggghWRH4042244443.753.7541.251.2542.252.25213.2542.651150042.52.540.250.2541.51.545.255.25169.542.3756.550040040.250.254000120.2540.083335.589.375
4SouthSouth EastCCCfshjLCV4848042039.5037.5041.50208.541.7090042.5042.5042.5042.5017042.5070048045042.500135.545.1666700
5WestWest1BBBoooooWRH4040042.752.75466422466216.7543.3510.7570044442.752.7541.51.539.7501684214.25400
6WestWest2Theoden HalAAAggggghWRH4042244443.753.7541.251.2542.252.25213.2542.651150042.52.540.250.2541.51.545.255.25169.542.3756.5500
7WestWest 3CCCfshjLCV4848042039.5037.5041.50208.541.7090042.5042.5042.5042.5017042.50700
8
9
10Drop Down for months ->JanSouth20Jan20North
11Feb33South
12RegionRegion2HUBEmployee NameRoleContractCostMar46East
13SouthSouth CentralBBBoooooWRH40700Apr61West
14SouthSouth EastCCCfshjLCV48900May77
15Jun90
16Jul105
17Aug118
18Sep134
19Oct149
20Nov162
21Dec175
Sheet11
Cell Formulas
RangeFormula
G10G10=XLOOKUP(E10,M10:M21,N10#,"",0)
N10:N21N10=XMATCH(M10:M21&" OT Cost",1:1,0)
A13:G14A13=LET(a,A2:F7,b,OFFSET(A2,0,G10-1,ROWS(a),1),c,HSTACK(a,b),d,FILTER(c,(CHOOSECOLS(c,1)=F10)*(CHOOSECOLS(c,7)>600)),d)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E10List=$M$10:$M$21
F10List=$P$10:$P$13
 
Upvote 0
Solution
The formula I have in A13 spills out - 7 columns and as many rows as the filter allows for - so maybe a lot of rows. So if there is anything in that area of the spreadsheet - it will through that error. Remove what you can in that area.
 
Upvote 0
it works. but when copied formula
=LET(a,DATA!A5:F362,b,OFFSET(DATA!B5,0,G3-1,ROWS(a),1),c,HSTACK(a,b),d,FILTER(c,(CHOOSECOLS(c,1)=F3)*(CHOOSECOLS(c,7)>500)),d)

to my data it gives #calc!
 
Upvote 0
Maybe try:
=LET(a,DATA!A5:F362,b,OFFSET(DATA!A5...
I guess that F3 is the dropdown for the region.

If that doesn't work, try taking apart the LET statement, meaning, instead of 'd' at the end, look at c, then b, then a, to see where the error is.
 
Upvote 0
sorry sorted just pick up wrong cell. anyway can you edit now to sort values descending?
 
Upvote 0
sorry sorted just pick up wrong cell. anyway can you edit now to sort values descending?
and can you add OT total hours for each month as well in column before cost? and sort cost ascending.
 
Upvote 0
and can you add OT total hours for each month as well in column before cost? and sort cost ascending.
sorted sorting descending. but can you add please ot total hours for each month with cost?
 
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