"Hi,
I have the following problem, here we need to sum continuously find the duplicates in MP and get sum based on unique MP code on header.
511001 511105
MP BASIC HOUSE RENT ALLOWANCE
115 1 2
115 1 2
115 1 2
115 1 2
115 1 2
181 1 2
181 1 2
191 1 2
Result should be
ACCOUNT NUMBER AMOUNT DESCRIPTION
H115511001 5 Basic May-2011
H181511001 2 Basic May-2011
H191511001 6 Basic May-2011
after that the next header like 511105 or HRA (with the same departments).
Here "H" is common letter
Please help me, your help is most appreciate.
I have the following problem, here we need to sum continuously find the duplicates in MP and get sum based on unique MP code on header.
511001 511105
MP BASIC HOUSE RENT ALLOWANCE
115 1 2
115 1 2
115 1 2
115 1 2
115 1 2
181 1 2
181 1 2
191 1 2
Result should be
ACCOUNT NUMBER AMOUNT DESCRIPTION
H115511001 5 Basic May-2011
H181511001 2 Basic May-2011
H191511001 6 Basic May-2011
after that the next header like 511105 or HRA (with the same departments).
Here "H" is common letter
Please help me, your help is most appreciate.