Filter date, showing all dates except 2018s

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I want to filter this table using Date. I do not want to see any date of year 2018. So what I did, select

Data Filter -->between

after 12/31/2018
before 1/1/2018

But excel showed 0 rows.

I tried AND/OR same result
I tried After 1/1/2018
Before 12/31/2018 , got same result

[TABLE="class: grid, width: 287"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]date[/TD]
[TD]customers[/TD]
[TD]product[/TD]
[TD]amount[/TD]
[/TR]
[TR]
[TD]10\14\2018[/TD]
[TD]mini mart[/TD]
[TD]milk[/TD]
[TD]905[/TD]
[/TR]
[TR]
[TD]1\04\2017[/TD]
[TD]mega mart[/TD]
[TD]coffee[/TD]
[TD]946[/TD]
[/TR]
[TR]
[TD]1\29\2018[/TD]
[TD]food mart[/TD]
[TD]bread[/TD]
[TD]882[/TD]
[/TR]
[TR]
[TD]9\04\2016[/TD]
[TD]giant x[/TD]
[TD]tea[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]12\21\2016[/TD]
[TD]ABC store[/TD]
[TD]milk[/TD]
[TD]151[/TD]
[/TR]
[TR]
[TD]10\01\2018[/TD]
[TD]xyz inc[/TD]
[TD]coffee[/TD]
[TD]737[/TD]
[/TR]
[TR]
[TD]2\17\2016[/TD]
[TD]mini mart[/TD]
[TD]tea[/TD]
[TD]484[/TD]
[/TR]
[TR]
[TD]8\31\2016[/TD]
[TD]ABC store[/TD]
[TD]coffee[/TD]
[TD]631[/TD]
[/TR]
[TR]
[TD]1\01\2017[/TD]
[TD]giant x[/TD]
[TD]milk[/TD]
[TD]855[/TD]
[/TR]
[TR]
[TD]8\17\2017[/TD]
[TD]mini mart[/TD]
[TD]milk[/TD]
[TD]975[/TD]
[/TR]
[TR]
[TD]6\13\2016[/TD]
[TD]mega mart[/TD]
[TD]coffee[/TD]
[TD]255[/TD]
[/TR]
[TR]
[TD]7\03\2018[/TD]
[TD]food mart[/TD]
[TD]bread[/TD]
[TD]184[/TD]
[/TR]
[TR]
[TD]7\16\2016[/TD]
[TD]giant x[/TD]
[TD]tea[/TD]
[TD]704[/TD]
[/TR]
[TR]
[TD]10\23\2017[/TD]
[TD]ABC store[/TD]
[TD]milk[/TD]
[TD]951[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
sorry i meant 2017s year. I tried this:

After 31/12/2017
Before 1/1/2017

Still did not work, excel hided all the rows!
 
Upvote 0
Ok having another look your dates arent dates. Test one of the date cells with ISNUMBER. Do the say true or false. Lets say a date is in A2:

=ISNUMBER(A2)
 
Upvote 0
Yes are number. I used =today()-randbetween(1,1000) to generate these number then Copy-->Paste value only to get dates only. Thank you.
 
Upvote 0
If they are dates an autofilter should give you a date filter. Just uncheck 2017.
 
Upvote 0
Yes it did work if i select 2017 but I wanted to learn how to use Between after date, and before date. Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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