Advance Filter between Dates

GlennL

New Member
Joined
Sep 25, 2018
Messages
33
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hello,

I am trying to get an advance filter to work with the criteria value range in 1 cell.

I have
=">="&WeekStart & "<="&WeekFinish

as the criteria filter range.

It works fine as
=">="&WeekStart
OR
"<="&WeekFinish
but not as a between range.

How do I get the between range to work when specifying it in one cell only?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello,

I am trying to get an advance filter to work with the criteria value range in 1 cell.

I have
=">="&WeekStart & "<="&WeekFinish

as the criteria filter range.

It works fine as
=">="&WeekStart
OR
"<="&WeekFinish
but not as a between range.

How do I get the between range to work when specifying it in one cell only?
Could you provide a sample of your data using the XL2BB add-in?
 
Upvote 0
It would be worth your while to look at the Contextures site but see if this helps.
Note: With this method the Criteria range needs to have a heading and formula row (E1 & E2 in my example) BUT the heading row can be BLANK or any text that is NOT an exact match for any heading in your data range.

Book1
ABCDE
1Start1/04/2023Use Date Field
2End1/06/2023Criteria --->TRUE
3
4
5
6IDDateAmt
711/01/202310
821/02/202320
931/03/202330
1041/04/202340
1151/05/202310
1261/06/202320
1371/07/202330
1481/08/202340
1591/09/202350
Sheet1
Cell Formulas
RangeFormula
E2E2=AND(B7>=$B$7,B7<=$B$2)


1675583395421.png
 
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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