I would like to pick up only data in column x and x-date for each person. (in condition of x-date is between day1 and day2 columns for each person). Please see the picture below
For example,
a, x=111, x-date=2/2/2016
b, x=8990, x-dates=2/3/2016
c, x=333, x-dates=5/5/2011