Your cell column 1 and 2 represent date and time. you can use datenum to determine time difference. for example (assuming you cell array is named A):
formatIn = 'dd-mmm-yyyy HH:MM:SS'; % I am assuming the months are 3 letters only
time_in = datenum([A{1,1} ' ' A{1,2}],formatIn); % This will give you a numerical value
time_2 = datenum([A{i,1} ' ' A{i,2}],formatIn); % This will give you a numerical value
You have to loop through until
(time_2 - time_in)*24*60 <= 10