Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel vba training - sort filter date

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel vba training - Sort & Filter by Date

excel vba training - Sort & Filter by Date

ResolvedVersion Standard

Sachin has attended:
Excel Advanced course

Sort & Filter by Date

Hi

I am using a spreadsheet to prioritse my work by (1) numerical priority 1-3 and (2) by date the job was recieved.

How do I make a parameter so that it is sorted / filtered by these two automatically?

Currently I am using autofilter across the heading names - however, I need to keep filtering each time I add/remove/edit a line.

Please can I find another way of doing this- perhaps by using some of the advanced options or funtion builder. Alternatively, I cannot make the "sort" function understand that I want the oldest date first.

Kind Regards
Sachin Kotak
sachin.kotak@autotrader.co.uk

RE: Sort & Filter by Date

You can acheive this by extending your filter area further down the page. This means that when you add new lines, they will be included.
So, select the area with your data, including headings, and an additional 50 lines.
Then autofilter.


The other aspect would be for you to setup a VIEW.
Click View, then Custom views.
This allows you to set specific autofilter settings, and then save that view, to that you can get back to the setting you want very quickly.
Once you have setup the custom views, you could also add a toolbar using:
Right-click Toolbars, Customise, and looking under the Toolbars tab and dragging the CUSTOM VIEWS label and box to an existing toolbar. This iwill allow you to scroll through the various views you have saved, on demand.


The concept you are talking about is related to database type functionality. In Access you could have a saved query that always sorts your list, in the view you want, no matter how much you add. You can acheive this in Excel, as described above.

Excel tip:

Return to the active cell after scrolling

When I scroll a long way down the screen from a selected cell, I can return to that cell with the Ctrl+Back Space shortcut. The active cell now appears in roughly the middle of the screen.

Shift+Back Space does something similar. Scroll down from the active cell and Shift+Back Space returns me to it and puts the active cell at the top of the screen; scroll up from the active cell and Shift+Back Space returns me to it and puts the active cell at the bottom of the screen.

Note also, that while Ctrl+Back Space will return me back to a selected range, Shift+Back Space only ever returns me to the active cell, which is normally at the top left-hand corner of any selected range.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.