advanced filter - criteria range

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,486
Below is the Critera Range of my Advanced Filter project;
The User is Inputting into Cells B2 and C2 with Dates

The Actual Criteria Range is B4:F5;

I have formulas in B5 and C5 which reference B2 and C2; Currently, as you see
I've "attempted" to allow for if Cells B2 and C2 are BLANKED-OUT by the User
meaning "regardless of dates" -- But it is not working.. Any suggestions?

TIA,
Jim
Excel Workbook
BCDEF
1StartEnd
25-Aug7-Aug
3
4TransDateTransDateDeptNameItem#ItemDesc
5>=40760<=40762Pepper
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B5=IF(ISBLANK(B2),"",">=" &B2)
C5=IF(ISBLANK(C2),"","<=" &C2)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about instead,

=">=" & N(B2)

="<=" & IF(C2, C2, --"12/31/9999")
 
Upvote 0
Try...



<TABLE style="FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00; BORDER-BOTTOM-COLOR: #00ff00; COLOR: #000000; BORDER-TOP-STYLE: groove; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-RIGHT-STYLE: groove; BORDER-LEFT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-RIGHT-COLOR: #00ff00; BORDER-BOTTOM-STYLE: groove"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-SIZE: 9pt; FONT-FAMILY: Arial" cellSpacing=0 cellPadding=2 border=1><TBODY><TR style="FONT-SIZE: 10pt; BACKGROUND-COLOR: #cacaca"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>B5</TD><TD>=IF(ISBLANK(B2),">="&1,">=" &B2)</TD></TR><TR><TD>C5</TD><TD>=IF(ISBLANK(C2),"<="& TODAY() * 2,"<=" &C2)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

or derivative
 
Upvote 0
This seems to work...
Excel Workbook
BC
4TransDateTransDate
5>=40760<=40762
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B5=IF(ISBLANK(B2),">" & DATEVALUE("1/1/1900"),">=" &B2)
C5=IF(ISBLANK(C2),"<" & DATEVALUE("8/1/2500"),"<=" &C2)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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