kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 951
- Office Version
- 365
Hi,
I have the following :
In Table 1, I have the raw data. In Table 2, I am trying to summarize the sales by staff. If the branch is repeated for the same staff, the sales should be summed to the branch which has the highest sales. Example is Staff 2 which has sales in Iowa, Texas and Virginia. Since the highest sales was in Texas, all the sales will be summed in Texas. Example of the correct result is in Table 2. Is there a formula that could be used to achieve this ? Appreciate all the help.
I have the following :
Book2 | |||||||||
---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | |||
2 | Table 1 | Table 2 | |||||||
3 | Name | Branch | Sales | Name | Branch | Sales | |||
4 | Staff1 | New York | 100 | Staff1 | New York | 100 | |||
5 | Staff2 | Texas | 100 | Staff2 | Texas | 255 | |||
6 | Staff2 | Virginia | 80 | Staff3 | Washinton | 100 | |||
7 | Staff2 | Iowa | 75 | Staff4 | Hawaii | 100 | |||
8 | Staff3 | Washinton | 100 | Staff5 | Texas | 450 | |||
9 | Staff4 | Hawaii | 100 | Staff6 | Iowa | 100 | |||
10 | Staff5 | New York | 100 | Staff7 | Washinton | 100 | |||
11 | Staff5 | Texas | 200 | Staff8 | Hawaii | 100 | |||
12 | Staff5 | Virginia | 150 | Staff9 | Hawaii | 100 | |||
13 | Staff6 | Iowa | 100 | ||||||
14 | Staff7 | Washinton | 100 | ||||||
15 | Staff8 | Hawaii | 100 | ||||||
16 | Staff9 | Hawaii | 100 | ||||||
Sheet1 |
In Table 1, I have the raw data. In Table 2, I am trying to summarize the sales by staff. If the branch is repeated for the same staff, the sales should be summed to the branch which has the highest sales. Example is Staff 2 which has sales in Iowa, Texas and Virginia. Since the highest sales was in Texas, all the sales will be summed in Texas. Example of the correct result is in Table 2. Is there a formula that could be used to achieve this ? Appreciate all the help.