=FILTER

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
755
Office Version
  1. 365
Platform
  1. Windows
Hello All

I have this formula, is there any chance i can add to it to only return the last 7 days within a date range.
=FILTER('30Days'!table,'30Days'!E:E=C13,"")

somthing like this but guessing.?
=FILTER('30Days'!table,'30Days'!E:E=C13,"") "30/03/2024 - 05/04/2024"
or
=FILTER('30Days'!table,'30Days'!E:E=C13,"") "=NOW() - 7
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Can you post sample data? Which column is the date in?
 
Upvote 0
that is filtering the table based on column E equalling C13 - so not sure what that is

BUT you can filter with various criteria
=filter( TABLE , (Column =

=FILTER(A3:E18,(B3:B18>=DATEVALUE("1/5/24"))*(B3:B18<=DATEVALUE("1/7/24")))

so ......)*(....... as criteria means all apply AND
......)+(....... as criteria means any apply OR

Cell Formulas
RangeFormula
C3:C18C3=WEEKNUM(B3)
D4:D18D4=WEEKNUM(B4-$B$3)
E4:E18E4=DAYS(B4,$B$3)/7
G4:K5G4=FILTER(A3:E18,(B3:B18>=DATEVALUE("1/5/24"))*(B3:B18<=DATEVALUE("1/7/24")))
A3:A18A3=B3
B7:B18B7=EOMONTH(O1,0)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,327
Members
453,032
Latest member
Pauh

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