Hello againThank you first of all.
I need to compare 2 sheets, which have a single data in common and with that data create a new sheet.
Nro TKT in both sheets is a KEY to find matches
For example.
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Nro TKt - Column A[/TD]
[TD]Name - Column B[/TD]
[TD]Fecha - Column C[/TD]
[TD]Total - Column D[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]Juan[/TD]
[TD]25/05/18[/TD]
[TD]1500.00[/TD]
[/TR]
[TR]
[TD]123457[/TD]
[TD]Pablo[/TD]
[TD]25/05/18[/TD]
[TD]1800.00[/TD]
[/TR]
[TR]
[TD]234567[/TD]
[TD]Pedro[/TD]
[TD]26/05/18[/TD]
[TD]-5000.00[/TD]
[/TR]
[TR]
[TD]985285[/TD]
[TD]John[/TD]
[TD]27/05/18[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]985286[/TD]
[TD]MAteo[/TD]
[TD]30/05/18[/TD]
[TD]-120[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Nro TKt - Column A[/TD]
[TD]Cia - Column B[/TD]
[TD]Name - Column C[/TD]
[TD]Fecha - Column D[/TD]
[TD]Total - Column E[/TD]
[/TR]
[TR]
[TD]123456[/TD]
[TD]45[/TD]
[TD]Juan[/TD]
[TD]25/05/18[/TD]
[TD]1500.00[/TD]
[/TR]
[TR]
[TD]123457[/TD]
[TD]44[/TD]
[TD]Pablo[/TD]
[TD]25/05/18[/TD]
[TD]1750.00[/TD]
[/TR]
[TR]
[TD]234566[/TD]
[TD]45[/TD]
[TD]Maria[/TD]
[TD]26/05/18[/TD]
[TD]-4500.00[/TD]
[/TR]
[TR]
[TD]985285[/TD]
[TD]230[/TD]
[TD]John[/TD]
[TD]27/05/18[/TD]
[TD]-300.00[/TD]
[/TR]
[TR]
[TD]123458[/TD]
[TD]55[/TD]
[TD]Carlos[/TD]
[TD]25/05/18[/TD]
[TD]12500.00[/TD]
[/TR]
[TR]
[TD]456789[/TD]
[TD]220[/TD]
[TD]Estela[/TD]
[TD]26/05/18[/TD]
[TD]135500.00[/TD]
[/TR]
</tbody>[/TABLE]
Expects Results
Create Sheet3
DIF (columnB) = Total.Sheet1 - Total.Sheet2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Match - New - Column A[/TD]
[TD]Dif - New - Column B[/TD]
[TD]Nro Tkt - Sheet1 - Column C [/TD]
[TD]Name - Sheet1 - Column D[/TD]
[TD]Fecha - Sheet1 - Column E[/TD]
[TD]Total - Sheet1 - Column F
[/TD]
[TD]Nro Tkt - Sheet2 - Column G[/TD]
[TD]Cia - Sheet2 - Column H[/TD]
[TD]Name - Sheet2 - Column I[/TD]
[TD]Fecha - Sheet2 - Column J[/TD]
[TD]Total - Sheet2 - Column K[/TD]
[/TR]
[TR]
[TD]OK[/TD]
[TD]0.00[/TD]
[TD]123456[/TD]
[TD]Juan[/TD]
[TD]25/05/18[/TD]
[TD]1500.00[/TD]
[TD]123456[/TD]
[TD]45[/TD]
[TD]Juan[/TD]
[TD]25/05/18[/TD]
[TD]1500.00[/TD]
[/TR]
[TR]
[TD]OK[/TD]
[TD]50.00[/TD]
[TD]123457[/TD]
[TD]Pablo[/TD]
[TD]25/05/18[/TD]
[TD]1800.00[/TD]
[TD]123457[/TD]
[TD]44[/TD]
[TD]Pablo[/TD]
[TD]25/05/18[/TD]
[TD]1750.00[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD]-5000.00[/TD]
[TD]234567[/TD]
[TD]Pedro[/TD]
[TD]26/05/18[/TD]
[TD]-5000.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]OK[/TD]
[TD]300.00[/TD]
[TD]985285[/TD]
[TD]John[/TD]
[TD]27/05/18[/TD]
[TD]0.00[/TD]
[TD]985285[/TD]
[TD]230[/TD]
[TD]John[/TD]
[TD]27/05/18[/TD]
[TD]-300[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD]-120.00[/TD]
[TD]985286[/TD]
[TD]Mateo[/TD]
[TD]30/05/18[/TD]
[TD]-120.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD]-12500.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]123458[/TD]
[TD]55[/TD]
[TD]Carlos[/TD]
[TD]25/05/18[/TD]
[TD]12500.00[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD]-135500.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]456789[/TD]
[TD]220[/TD]
[TD]Estela[/TD]
[TD]26/05/18[/TD]
[TD]135500.00[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD]4500.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]234566[/TD]
[TD]45[/TD]
[TD]Maria[/TD]
[TD]26/05/18[/TD]
[TD]-4500.00[/TD]
[/TR]
</tbody>[/TABLE]
Thanks
I do not know how to start
Juan Manuel