Hi,
Hoping someone can assist with a formula to assist with a worksheet.
On SHEET 1, I have two relevant columns 'ID' and 'DATE'. For example -
[TABLE="width: 155"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]
[/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]
[/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]03/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]04/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]20/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]21/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]26/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]3066409[/TD]
[TD="align: right"]23/08/18[/TD]
[/TR]
[TR]
[TD="align: right"]7105709[/TD]
[TD="align: right"]21/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]7105709[/TD]
[TD="align: right"]24/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]13111509[/TD]
[TD="align: right"]27/08/18[/TD]
[/TR]
</tbody>[/TABLE]
On SHEET 2, I have three relevant columns 'ID' ; 'DATE' ; 'RESULT'. For example -
[TABLE="width: 281"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]ID[/TD]
[TD]
[TD]
[/TR]
[TR]
[TD="align: right"]
[TD="align: right"]
[TD]
[/TR]
[TR]
[TD="align: right"]
[TD="align: right"]
[TD]
[/TR]
[TR]
[TD="align: right"]
[TD="align: right"]
[TD]
[/TR]
[TR]
[TD="align: right"]
[TD="align: right"]
[TD]
[/TR]
[TR]
[TD="align: right"]
[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I am after is a formula, which tells me:
Use the ID and DATE from Sheet 1. If it finds a result in Sheet 2, where the ID is the same and the DATE is within the next 14 DAYS then return the RESULT. If no match found, then NIL.
In the above example, the second and third rows of Sheet 1 would return a result of ATT. The rest would be NIL.
Thanks,
Shaun.
Hoping someone can assist with a formula to assist with a worksheet.
On SHEET 1, I have two relevant columns 'ID' and 'DATE'. For example -
[TABLE="width: 155"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]
Date
[/TD][/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]
16/08/18
[/TD][/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]03/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]465260[/TD]
[TD="align: right"]04/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]20/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]21/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]2859809[/TD]
[TD="align: right"]26/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]3066409[/TD]
[TD="align: right"]23/08/18[/TD]
[/TR]
[TR]
[TD="align: right"]7105709[/TD]
[TD="align: right"]21/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]7105709[/TD]
[TD="align: right"]24/09/18[/TD]
[/TR]
[TR]
[TD="align: right"]13111509[/TD]
[TD="align: right"]27/08/18[/TD]
[/TR]
</tbody>[/TABLE]
On SHEET 2, I have three relevant columns 'ID' ; 'DATE' ; 'RESULT'. For example -
[TABLE="width: 281"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"]ID[/TD]
[TD]
DATE
[/TD][TD]
RESULT
[/TD][/TR]
[TR]
[TD="align: right"]
465260
[/TD][TD="align: right"]
06/09/2018
[/TD][TD]
ATT
[/TD][/TR]
[TR]
[TD="align: right"]
146040008
[/TD][TD="align: right"]
28/08/2018
[/TD][TD]
DNAI
[/TD][/TR]
[TR]
[TD="align: right"]
183694709
[/TD][TD="align: right"]
30/09/2018
[/TD][TD]
DNAD
[/TD][/TR]
[TR]
[TD="align: right"]
259730008
[/TD][TD="align: right"]
23/08/2018
[/TD][TD]
NRE
[/TD][/TR]
[TR]
[TD="align: right"]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I am after is a formula, which tells me:
Use the ID and DATE from Sheet 1. If it finds a result in Sheet 2, where the ID is the same and the DATE is within the next 14 DAYS then return the RESULT. If no match found, then NIL.
In the above example, the second and third rows of Sheet 1 would return a result of ATT. The rest would be NIL.
Thanks,
Shaun.