Hello all,
I wasn't sure exactly how to describe this problem and I suspect the solution is simple (however, I have been pulling my hair out trying to find it). We have a bunch of salesmen participating in a variety of sales events. We are trying to find the sum of the outputs by pairs of event types on a rolling basis.
There are three main event types (a,b,c in Column B). The first two events in the example below are an "a" and a "b", thus the first pair (and desired output) is "ab" (in column C). Ultimately I would like to sum the output based on the Last 2 Event Types (i.e. ab= ..., ac=..., ba=..., etc). This is easy using sumif once I have the "Last 2 Event Types" in column C.
There can be a different number of salesmen in each event (usually 6-10). The event types occur in pretty much random order.
There many events in column B so I don't want do Last 2 Event Types (Column C) by hand (if possible).
Excel 2010
<tbody>
</tbody>
Thank you.
I wasn't sure exactly how to describe this problem and I suspect the solution is simple (however, I have been pulling my hair out trying to find it). We have a bunch of salesmen participating in a variety of sales events. We are trying to find the sum of the outputs by pairs of event types on a rolling basis.
There are three main event types (a,b,c in Column B). The first two events in the example below are an "a" and a "b", thus the first pair (and desired output) is "ab" (in column C). Ultimately I would like to sum the output based on the Last 2 Event Types (i.e. ab= ..., ac=..., ba=..., etc). This is easy using sumif once I have the "Last 2 Event Types" in column C.
There can be a different number of salesmen in each event (usually 6-10). The event types occur in pretty much random order.
There many events in column B so I don't want do Last 2 Event Types (Column C) by hand (if possible).
Excel 2010
A | B | C | D | |
---|---|---|---|---|
1 | Salesman | EventType | Last 2 Event Types | Output |
2 | a1 | a | ||
3 | a2 | a | ||
4 | a3 | a | ||
5 | a4 | a | ||
6 | a5 | a | ||
7 | a6 | a | ||
8 | b1 | b | ||
9 | b2 | b | ||
10 | b3 | b | ||
11 | b4 | b | ||
12 | b5 | b | ||
13 | b6 | b | ||
14 | b7 | b | ab | 50 |
15 | c1 | c | ||
16 | c2 | c | ||
17 | c3 | c | ||
18 | c4 | c | ||
19 | c5 | c | ||
20 | c6 | c | ||
21 | c7 | c | ||
22 | c8 | c | ||
23 | c9 | c | bc | 62 |
24 | b1 | b | ||
25 | b2 | b | ||
26 | b3 | b | ||
27 | b4 | b | ||
28 | b5 | b | ||
29 | b6 | b | ||
30 | b8 | b | cb | 47 |
31 | c1 | c | ||
32 | c2 | c | ||
33 | c3 | c | ||
34 | c4 | c | ||
35 | c5 | c | ||
36 | c6 | c | ||
37 | c7 | c | bc | 39 |
<tbody>
</tbody>
Sheet1
Any help would be appreciated.Thank you.