Advanced Filter with dates in the criteria

Wild Bill

Board Regular
Joined
Feb 20, 2006
Messages
125
I'm having a little trouble with Advanced Filter. I want to filter on a date field and capture the rows where the field is blank or where the date is >01/31/09. The result is giving me rows that include dates that are <01/31/09.

My criteria range looks like this:

DIL Actual Deliv Date Due Date
J-27 <=01/31/09
J-27 >01/31/09 <=01/31/09

I should get 9 rows from my dataset, but I'm getting 14 because 5 rows are appearing that have an Actual Deliv Date <01/31/09.

Is there something special about dates in criteria ranges that I'm missing?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
My criteria range came through a little messed up. The first row under Actual Deliv Date is blank. I want to capture rows with no Actual Deliv Date shown or with an Actual Deliv Date > 01/31/09. The Due Date is <=01/31/09 on both rows.
 
Upvote 0
I think I've got it.

I added a column to the criteria range with no header. The criterion in the first row of that column is =ISBLANK('All Items'!Y3), where Y3 is the first data row under the Actual Deliv Date column.

The Actual Deliv Date column is blank on the first row of the criteria range and shows my date criterion on the second row.

So it wasn't the dates that were a problem but the blank.
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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