Access sort and filter - dynamic

Mkunanets

New Member
Joined
Nov 28, 2018
Messages
1
Is there a way I can sort by ascending and filter to only show the top criteria. Meaning the criteria is dynamic. But I always want to show the top. The record count is also dynamic. So for example I have the following data
Q12020
Q12020
Q12021
Q42020
Q32020

so I would want to only show the Q12021 and it’s respective data going forward. And the. When the dates change I would want to show the more recent quarter. Again both the criteria and record count is dynamic.
Any help is really appreciated!!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Use a query to show the results. if the date period Quarter One is the results your after then that would be the criteria, if you want it more dynamic you could use a form with a combo showing the quarter period and then link that to the query to show the results. Criteria on this field would be Q12021.
 
Upvote 0
since these values are not sortable as is you would need to sort with a little extra logic,
something like order by right(value, 4) desc, left(value, 2) desc
that would bring the most recent to the top.

But also as noted above it would be useful to use an input or a query to get just the most recent quarter, then use that value as a criteria for your next step (results for that quarter).
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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