Need help, multiple criteria with approximate matching

biskwit

New Member
Joined
Sep 21, 2014
Messages
19
Hi Ladies and Gentleman!

I have a problem. On column AL, i want to return "ok" if AI and AJ have a match on AF ang AG.
however i want have it check for approximate time also. Because my formula searches for exact
matches only. Please help me and have it search also in approxiamate value on time of 1 minute.

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


AF AG AH AI AJ AK AL
CallerAnswer TimeIDCaller CalltimeIDok=not abandoned
3103875551

<tbody>
</tbody>

<tbody>
</tbody>
4:15:32

<tbody>
</tbody>

<tbody>
</tbody>
ok
3103875551

<tbody>
</tbody>

<tbody>
</tbody>
4:14:28

<tbody>
</tbody>

<tbody>
</tbody>
ok

<tbody>
</tbody>
#N/A
3103875551

<tbody>
</tbody>

<tbody>
</tbody>
4:16:59

<tbody>
</tbody>
ok
3103875551

<tbody>
</tbody>

<tbody>
</tbody>
4:15:53

<tbody>
</tbody>

<tbody>
</tbody>
ok#N/A
8657481751

<tbody>
</tbody>
0:19:42

<tbody>
</tbody>
ok
8657481751

<tbody>
</tbody>
0:18:38

<tbody>
</tbody>
ok#N/A
8657481751

<tbody>
</tbody>
0:20:46

<tbody>
</tbody>
ok
8657481751

<tbody>
</tbody>
0:19:42

<tbody>
</tbody>
okok
8657481751

<tbody>
</tbody>
0:21:57

<tbody>
</tbody>
ok
8657481751

<tbody>
</tbody>
0:21:07

<tbody>
</tbody>
ok#N/A

<tbody>
</tbody>

**on AL5 it returns an "ok" because AI5 and AJ5 found a match on AF4 and AG4.
**i want AL3 to return "ok" also because AI3 and AJ3 is in range with AF2 and AG2 with only 21seconds difference.
**i want a range of 30 seconds or maybe 1 min.


Thank you very much!!!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Maybe...

AL2
=IF(SUMPRODUCT(--($AF$2:$AF$1650=AI2),--(ABS($AG$2:$AG$1650-AJ2)<=30/86400)),"Ok","N/A")
copy down

M.
 
Upvote 0
Hi Marcelo! That was a huge help! really, you dont know how thankful i am. I have a problem regarding this, its actually taking a long time to calculate, its "showing calculating 4 processors". ​I have close to 20 thousand entries.
 
Upvote 0
To improve the performance you can put the SUMPRODUCT part in a helper column.
For example put
=SUMPRODUCT(--($AF$2:$AF$1650=AI2),--(ABS($AG$2:$AG$1650-AJ2)<=30/86400))
in AZ2 and copy down.
Select, Copy(Ctrl+C) and Paste only values

Then try this formula
=IF(AZ2,"Ok","N/A")

M.
 
Upvote 0
The data actually has date, originally it has date and time but i seperated using delimit option. Would it be more efficient if lets an entry made on sep 5 at 3:30 pm,would only search fields with sep 5 dates?

this is like a whole monelth of data consisting of phne call call time stamps and transfer time stamps but none the less i will try that. =)
 
Upvote 0
Thanks mr. M! On my way to office. Can i ask another one?

Like on column A consist of date and time.

9/1/2014 12:01 am
9/1/2014 1:12 am
9/1/2014 2:01 am


I want to count the number of entries on column A date and time ranges from 9/1/2014 1:00 am till 9/1/2014 2:00 am only.

Thanks!
 
Upvote 0
You can use COUNTIFS

Something like

=COUNTIFS(A:A,">="&B2,A:A,"<="&C2)

where B2 houses the Begin Date-Time and C2 the End Date-Time

M.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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?

Disable AdBlock

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
Back
Top