I have two tables above, in which minor_bay variable is common in both. I like to get a new table using a command that pulls out date variable (table1) rows that fall within two date range (in table 2) and have matching minor bay variables. Can anyone help to make a command using excel?