Date and Time auto filtering

Thomas_angu

New Member
Joined
Oct 2, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi guys, I'm still new to excel VBA.

My excel consists of different days and different timing. I would like to auto-filter the same day but in different timing in one sheet and another day to another sheet. The time is at column L with the format (dd/mm/yyyy 5:48:58 AM).
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
In helper cells
=text(L(and the number),"dddd") will produce days spelt
=text(L(and the number),"mm") will produce month number
=text(L(and the number),"dddd") will produce month name
=text(L(and the number),"h") will produce hour of day

if you put them next to each other you could pull Thursday and 5pm for instance from filters
 
Upvote 0
Thanks for the reply.

1601651537485.png


For example the data is shown like this. Can I know the coding to apply for auto filter the date as shown in the image?
 
Upvote 0
you could use =text(L(and the number),"dd/mm/yyyy") or =text(L(and the number), "yyyy/mm/dd")
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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