ColG Col2 Col3 Len Sign
G1 1 30 300 +
G2 20 80 200 +
G3 455 720 1000 -
G4 3 40 100 -
G4 2 90 130 +
and here is the idea, for each row, if the Sign is -, then do :
Len-Col2 > NewCol3
Len-Col3 > NewCol2
exemple
1000-720=280
1000-455=545
100-40=60
100-3=97
and get :
ColG Col2 Col3 Len Sign NewCol2 NewCol3
G1 1 30 300 + 1 30
G2 20 80 200 + 20 80
G3 455 720 1000 - 280 545
G4 3 40 100 - 60 97
G4 2 90 130 + 2 90
Thank you for your help
col2, col3