cflorackis
Board Regular
- Joined
- Aug 18, 2002
- Messages
- 137
Dear all,
I am trying to do a summation using information from different sheets.
I essentially have information on the names and compensation of the employees of company A----data for different years come in different sheets-----e.g. here is an example of how my data are structured for year 2007
and here for year 2006:
What I need to do is to find a way to calculate the sum of salary and bonus for company A for each year separately and then have it in a different sheet or file e.g. according to the information provided above the sum of salary for year 2006 is 22 (8+5+3+6)----please note that the numbers in cells A5 and A6 have to be ignored since they do not correspond to any individuals.
Similarly, for year 2007, the sum of salary is 35 (10+15+7+3)
Here is an example of how i would like to have my data organized
(Column E just reports the number of individuals paid in each year)
many thanks in advance
This has been causing problems to me for a long time so any help will be greatly appreciated
C.
I am trying to do a summation using information from different sheets.
I essentially have information on the names and compensation of the employees of company A----data for different years come in different sheets-----e.g. here is an example of how my data are structured for year 2007
sample.xls | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Company A: Year 2007 | |||||
2 | Name | Role | salary | bonus | ||
3 | george | FD | 10 | 7 | ||
4 | John | CEO | 15 | 8 | ||
5 | ED Total | 23 | 9 | |||
6 | ED Average | 47 | 5 | |||
7 | jim | Independent NED | 7 | 8 | ||
8 | Steven | Independent NED | 3 | 4 | ||
2007 |
and here for year 2006:
sample.xls | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Company A: Year 2006 | |||||
2 | Name | Role | salary | bonus | ||
3 | george | FD | 8 | 30 | ||
4 | John | CEO | 5 | 20 | ||
5 | ED Total | 2 | 12 | |||
6 | ED Average | 4 | 7 | |||
7 | jim | Independent NED | 3 | 4 | ||
8 | Bill | Independent NED | 6 | 11 | ||
2006 |
What I need to do is to find a way to calculate the sum of salary and bonus for company A for each year separately and then have it in a different sheet or file e.g. according to the information provided above the sum of salary for year 2006 is 22 (8+5+3+6)----please note that the numbers in cells A5 and A6 have to be ignored since they do not correspond to any individuals.
Similarly, for year 2007, the sum of salary is 35 (10+15+7+3)
Here is an example of how i would like to have my data organized
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Company | Year | sum of salary | sum of bonus | number of indiviuals paid | ||
2 | companyA | 2007 | 35 | 27 | 4 | ||
3 | companyA | 2006 | 22 | 65 | 4 | ||
Sheet1 |
(Column E just reports the number of individuals paid in each year)
many thanks in advance
This has been causing problems to me for a long time so any help will be greatly appreciated
C.