Filtering by Dates

Pibsandsquibs

New Member
Joined
Aug 18, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a spreadsheet that has multiple shipments recorded either with a past date or dates in the future (up to 2 months).

Is there a way that I can get excel to filter everything automatically that is arriving in the next 21 days as an example and then it automatically updates this on a daily basis

So based on todays date being 29/08/24 everything that has an arrival date between now and the 19/09/24 appears and then tomorrow shipments that have an arrival date between 30/08/24 and 20/09/24 appears adding the 20/09/24 to the list. Thanks
 
@RoryA this has been working well, many thanks. Just one further question

With regards the range is it possible to select the columns you want rather than selecting a range. Say if I just wanted A2, C2, E2 rather than A2:E2.

I have tried adjusting using my limited knowledge but it starts to return an error.

Many thanks
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Yes, you can wrap the whole thing in CHOOSECOLS:

Excel Formula:
=CHOOSECOLS(formula, 1,3,5)

for example
 
Upvote 0
Yes, you can wrap the whole thing in CHOOSECOLS:

Excel Formula:
=CHOOSECOLS(formula, 1,3,5)

for example
Apologies I am a bit confused where I put the details, below is the formula that I am using at the moment

=SORT(FILTER('[Log.xlsx]Log'!A:AN,('[Log.xlsx]Log'!AJ:AJ>=TODAY()+14)*('[Log.xlsx]Log'!AJ:AJ<=TODAY()+20)),36)
 
Upvote 0
=CHOOSECOLS(SORT(FILTER('[Log.xlsx]Log'!A:AN,('[Log.xlsx]Log'!AJ:AJ>=TODAY()+14)*('[Log.xlsx]Log'!AJ:AJ<=TODAY()+20)),36),1,3,5)

for example.
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,166
Members
452,615
Latest member
bogeys2birdies

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