# match with 2 criteria within a 30 seconds time range.

#### biskwit

##### New Member
Hi Ladies and Gentleman!

I have a problem. Please help with a formula where it check for a time range, lets say 30 seconds.

Right now my formula is:

=INDEX(\$AK\$2:\$AK\$1650, MATCH(1,(AI2=\$AF\$2:\$AF\$1650)*(AJ2=\$AG\$2:\$AG\$1650),0))

What it does is it look for exact matches for two criteria, the phone number and the Call Time.
Now my problem is, i want it to match within a 30 seconds or 1 min time range.

 AF AG AH AI AJ AK AL 1 Caller Answer Time ID Caller Call Time ID ok=not abandoned 2 3103875551 4:14:28 ok 3103875551 4:13:27 ok #N/A 3 3103875551 4:15:32 ok 3103875551 4:14:28 ok ok 4 3103875551 4:16:59 ok 3103875551 4:15:53 ok #N/A 5 ok ok 6 ok ok

<tbody>
</tbody>

**on AL3 it returns an "ok" because AI3 and AJ3 found a match on AF2 and AG2.
**on AL4, it returns #N/A because AJ = 4:15:52 is not the exact match of AG = 4:15:32. So i want
the formula to match the time within a range of 30seconds or 1 min. So that AL4 would return an "ok"
as well.

Thank you, i hope you understand my issue.

### Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Replies
3
Views
509
Replies
6
Views
336
Replies
2
Views
155
Replies
0
Views
448
Replies
6
Views
428

1,191,668
Messages
5,987,946
Members
440,121
Latest member
eravella

### 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?

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