Filtering rows of data by dates

chamblessw

New Member
Joined
Dec 7, 2009
Messages
18
How can I use a pivot table or advanced filter or macros to view rows by
  1. Only today’s date (1 row) ?
  2. Only this week ?
  3. Only last week ?
  4. Only last month ?
  5. Only last 12 months ?
  6. All dates ?

That is, rows are headed by day. I select the rows that I view.
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You can probably use all those things to filter by date, but in what context are you trying to filter? Does it need to be automated in some way?
 
Upvote 0
Context: I have 20 trucks and I am recording maintenance status on each. The individual truck records for a given date will be collected in composite pivot tables that lists all 20 trucks and status and other useful information such as mechanics performance and truck utilization.

The problem is that the source data will be from individual trucks running daily. Each truck will be assigned a tab (spreadsheet). Trucks that are in service will be automatically updated if nothing is entered. If a truck is in for maintenance, I must be able to find the current status (today) and recent history. Each year I add 365 records. The best solution would be to have a macro button for each time period view or a drop down box having the choices indicated above.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,726
Members
449,093
Latest member
Mnur

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