=FILTER

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
741
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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