Hi, is it possible to combine vlookup with get value in specific row. Do i need to do macro behind or it can be done with cell formula only. When using vlookup only value in first row retrieve.Example as
=VLOOKUP(B4,B3:C9,2,FALSE)
In scenario below, i want to get payment date result based on payment received, such for example for ID 123 which suppose go to cell second payment date instead of first date payment.
Any help is appreciated.
DATA
[TABLE="width: 252"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Sheet1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD] ID[/TD]
[TD] Payment Date[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]01/01/2002[/TD]
[/TR]
[TR]
[TD]Jason[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]02/01/2002[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]05/02/2002[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]16/03/2002[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]25/03/2002[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]08/04/2002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheet2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name [/TD]
[TD] ID[/TD]
[TD]Payment Received[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Jason[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]
OUTCOME
[TABLE="width: 150"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]Report[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD="align: right"]01/01/2002[/TD]
[/TR]
</tbody>[/TABLE]
=VLOOKUP(B4,B3:C9,2,FALSE)
In scenario below, i want to get payment date result based on payment received, such for example for ID 123 which suppose go to cell second payment date instead of first date payment.
Any help is appreciated.
DATA
[TABLE="width: 252"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Sheet1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD] ID[/TD]
[TD] Payment Date[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]01/01/2002[/TD]
[/TR]
[TR]
[TD]Jason[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]02/01/2002[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]05/02/2002[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]16/03/2002[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]25/03/2002[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]08/04/2002[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheet2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name [/TD]
[TD] ID[/TD]
[TD]Payment Received[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Jason[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Suzy[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]
OUTCOME
[TABLE="width: 150"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]Report[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD="align: right"]01/01/2002[/TD]
[/TR]
</tbody>[/TABLE]