Hi all, kindly advise me so that to create a VBA code which should “SUM” the headings and rows down in columns “SALARY” & “ACTUAL SALARY”. Therefore, that the above headings have no stably column, but the row “2” is constantly. Below I present the original data and the expected result. Thanking you in advance
Original data
<tbody>
</tbody>
Expected result
<tbody>
</tbody>
Original data
P | Q | R | S | T | |
1 | COMPANY | ||||
2 | EMPL. NAME | EMPL. CODE | SALARY | ACTUAL SALARY | DIFFERENCE |
3 | EMPLOYEE NAME1 | 450010 | 1,570.00 | 1,480.00 | |
4 | EMPLOYEE NAME2 | 450146 | 1,850.00 | 1,588.00 |
<tbody>
</tbody>
Expected result
P | Q | R | S | T | |
1 | COMPANY | ||||
2 | EMPL. NAME | EMPL. CODE | SALARY | ACTUAL SALARY | DIFFERENCE |
3 | EMPLOYEE NAME1 | 450010 | 1,570.00 | 1,480.00 | 90.00 |
4 | EMPLOYEE NAME2 | 450146 | 1,850.00 | 1,588.00 | 262.00 |
<tbody>
</tbody>