Advance filter; referencing a cell outside of the list range

123bob123

New Member
Joined
Feb 14, 2019
Messages
3
I have an advance filter which works perfectly if I use this formula =AND(J16>=0.607,J16<=0.627)
I does not work if I us this formula =AND(J16>=O6,J16<=P6)

O6 and P6 are not in the List or Criteria range.
O6 contains a formula that return 0.607 and P6 contains a formula that returns 0.627.
So the problem is if I use the actual value the advance filer works and if reference a cell containing the same value it doesn't.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
What happens if you modify your formula to:
=AND(J16>=INDIRECT(O6),J16<=INDIRECT(P6))
 
Upvote 0
Does Enclosing O6 and P6 in Double-Quotes make any difference?

=INDIRECT("O6"),J16<=INDIRECT("P6"))
 
Upvote 0
Jim,
This works great, exactly as needed!
I tried different ways to enter the formula but would have never figured this out.
Again, really appreciated, works perfectly.
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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