L
Legacy 367570
Guest
Hi All,
Bit of a complicated one. Any help much appreciated!!!
So I have two sets of data I want to link together.
Both have time stamps in format mm/dd/yyyy hh:mm in each row.
I for each row in table 1, I want to look at the time stamp, then return the details of the row in table 2 that occurs within 20 minutes AFTER the date and time stamp in table 1. The formula should ONLY return the row with the highest value based on another column
So
Table 1
<tbody>
</tbody>
Table 2
<tbody>
</tbody>
Output
<tbody>
</tbody>
As you can see above, each of the returned rows are within 20 minutes after the original, and for Ben and Luke, return the rows with the highest value.
Any ideas on how I can achieve this?
Thanks in advance!
Bit of a complicated one. Any help much appreciated!!!
So I have two sets of data I want to link together.
Both have time stamps in format mm/dd/yyyy hh:mm in each row.
I for each row in table 1, I want to look at the time stamp, then return the details of the row in table 2 that occurs within 20 minutes AFTER the date and time stamp in table 1. The formula should ONLY return the row with the highest value based on another column
So
Table 1
Name | Time | Output Data 1 | Output Data 2 | Output Data 3 | ||
John | 02/02/2016 08:45:00 |
<tbody> </tbody> | ? | ? | ||
<tbody> </tbody> |
<tbody> </tbody> | ? | ? | ? | ||
<tbody> </tbody> |
<tbody> </tbody> | ? | ? | ? | ||
<tbody> </tbody> |
<tbody> </tbody> | ? | ? | ? |
<tbody>
</tbody>
Table 2
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | a | 6 | r | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 5 | w | x | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 7 | 5 | 3 | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 1 | ! | = | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | d | w | d | ||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 1 | 2 | 3 |
<tbody>
</tbody>
Output
<tbody> </tbody> | Time | Product | Time | Value |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ||||
John |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | a | 6 | r | ||||
Luke |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 1 | 2 | 3 | ||||
Sarah |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 7 | 5 | 3 | ||||
Ben |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | 1 | ! | = |
<tbody>
</tbody>
As you can see above, each of the returned rows are within 20 minutes after the original, and for Ben and Luke, return the rows with the highest value.
Any ideas on how I can achieve this?
Thanks in advance!