if all 4 qtr is >= 100 then 20000 , if any 3 qtr > 100 and anl > 105 ach% , then 20000 after matching col1 and col2 with the grid
<tbody>
grid
col1
AA
A
B
C
ANL
XX
25000
20000
16500
13000
105
YY
20000
17000
14500
12000
110
data
col1
col2
QTR1
QTR2
QTR3...