Hi all,
I need to be able to sum multiple columns based on the column header (to select the columns) but also particular rows based on the first column.
Please see the below example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Basic[/TD]
[TD]Allowance[/TD]
[TD]Basic[/TD]
[TD]Tax[/TD]
[TD]Basic[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp No.[/TD]
[TD]Salary[/TD]
[TD]Accom[/TD]
[TD]Hol Pay[/TD]
[TD]Tax[/TD]
[TD]Temp Sal[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5000[/TD]
[TD]1250[/TD]
[TD]850[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8000[/TD]
[TD]1250[/TD]
[TD]0[/TD]
[TD]800[/TD]
[TD]800[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]5000[/TD]
[TD]1250[/TD]
[TD]1500[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to be able to sum all the Basic columns for employee 1, which should return 6,350.
I'm having a complete mental block and can only think of using multiple vlookups.
Any help would be much appreciated
Thanks
W
I need to be able to sum multiple columns based on the column header (to select the columns) but also particular rows based on the first column.
Please see the below example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Basic[/TD]
[TD]Allowance[/TD]
[TD]Basic[/TD]
[TD]Tax[/TD]
[TD]Basic[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp No.[/TD]
[TD]Salary[/TD]
[TD]Accom[/TD]
[TD]Hol Pay[/TD]
[TD]Tax[/TD]
[TD]Temp Sal[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5000[/TD]
[TD]1250[/TD]
[TD]850[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5000[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8000[/TD]
[TD]1250[/TD]
[TD]0[/TD]
[TD]800[/TD]
[TD]800[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]5000[/TD]
[TD]1250[/TD]
[TD]1500[/TD]
[TD]500[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to be able to sum all the Basic columns for employee 1, which should return 6,350.
I'm having a complete mental block and can only think of using multiple vlookups.
Any help would be much appreciated
Thanks
W