vba - Filtering Excel Table with date in multipe columns -


i have table has 2 date columns. simplicity, lets , "in date" , "out date." filter table see activity of date in either column.

with standard autofilter, execute filter "in date" , "out date" both date show. don't know of way if "in date" or "out date" = user date. want filter table row when either date same selected date. thus, showing rows contain date specified.

can on way this? trying vba code sheet can simple user.

i think advanced filter functionality need. how "selecting" date used filter?

if want or filter, in criteria put target date on separate lines (on same line and). b 1 indate outdate 2 7/17/17 3 7/17/17

if reference selected value in both date cells both update when select date.

another helpful tip when doing advanced filter define named range data set, makes executing filter easier. defining names criteria area , output area helpful.

when filter working, record macro (using defined names), add button worksheet launches macro.

i've done similar things input being datepicker object.

good luck!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -