Hello,
Example below the Sheet Source; shows as data received.
Example below the Sheet Pivot Table; shows data result of 3 fields (Count-1, Sum-1, Patterns-1) of Source Sheet in to the pivot table.
Example below the Sheet Possible Results; shows all possible result could be formed with 3 fields (Count-1, Sum-1, Patterns-1).
Here is what I need as shown in the Sheet Result Required in column F find total from; Sheet Possible Results
If 3 fields (Count-1, Sum-1, Patterns-1) criteria match as shown
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B5 = 18… Patterns-1, C5 = 2,1) look in to Sheet Possible Results if criteria match show total in column F5
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B7 = 21… Patterns-1, C7 = 2,1) look in to Sheet Possible Results if criteria match show total in column F7
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B9 = 30… Patterns-1, C9 = 1,1,1) look in to Sheet Possible Results if criteria match show total in column F9
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B9 = 30… Patterns-1, C10 = 1,2) look in to Sheet Possible Results if criteria match show total in column F10
Note; pivot table change every time data is filled in source sheet so I think VBA solution will be work great
It is just my thought.
I am using excel version 2000
Thank you in advance.
Regards,
Moti
Example below the Sheet Source; shows as data received.
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Year | EM | Count-1 | Sum-1 | Patterns-1 | ||
2 | Year | EM | Count-1 | Sum-1 | Patterns-1 | ||
3 | 1975 | 5 | 80 | 2,1,1,1 | |||
4 | 1978 | 4 | 67 | 3,1 | |||
5 | 1980 | 5 | 80 | 1,3,1 | |||
6 | 1985 | 4 | 67 | 1,1,1,1 | |||
7 | 1985 | 5 | 80 | 2,1,1,1 | |||
8 | 1988 | 4 | 67 | 2,1,1 | |||
9 | 1990 | 4 | 67 | 1,1,1,1 | |||
10 | 1990 | 5 | 80 | 1,1,1,2 | |||
11 | 1992 | 3 | 36 | 1,2 | |||
12 | 1993 | 3 | 36 | 1,1,1 | |||
13 | 1993 | 5 | 80 | 2,2,1 | |||
14 | 1996 | 3 | 30 | 1,1,1 | |||
15 | 1998 | 4 | 67 | 1,1,2 | |||
16 | 1998 | 5 | 50 | 2,1,2 | |||
17 | 2000 | 3 | 21 | 2,1 | |||
18 | 2001 | 4 | 67 | 1,1,1,1 | |||
19 | 2001 | 5 | 80 | 1,1,3 | |||
20 | 2002 | 4 | 67 | 2,1,1 | |||
21 | 2003 | 3 | 36 | 2,1 | |||
22 | 2003 | 5 | 80 | 4,1 | |||
23 | 2003 | 5 | 80 | 3,1,1 | |||
24 | 2005 | 4 | 67 | 1,1,1,1 | |||
25 | 2006 | 4 | 28 | 3,1 | |||
26 | 2007 | 4 | 67 | 2,1,1 | |||
27 | 2008 | 4 | 67 | 1,2,1 | |||
28 | 2008 | 4 | 67 | 2,1,1 | |||
29 | 2010 | 3 | 18 | 2,1 | |||
30 | 2010 | 4 | 67 | 1,1,2 | |||
31 | 2011 | 5 | 80 | 1,1,2,1 | |||
32 | 2012 | 4 | 67 | 1,2,1 | |||
33 | 2012 | 5 | 80 | 3,2 | |||
34 | 2012 | 5 | 80 | 2,1,1,1 | |||
35 | 2013 | 3 | 30 | 1,1,1 | |||
36 | 2013 | 4 | 67 | 2,1,1 | |||
37 | 2013 | 5 | 80 | 1,2,1,1 | |||
38 | 2014 | 3 | 30 | 1,2 | |||
Source |
Example below the Sheet Pivot Table; shows data result of 3 fields (Count-1, Sum-1, Patterns-1) of Source Sheet in to the pivot table.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ||||||
2 | ||||||
3 | Count | |||||
4 | Count-1 | Sum-1 | Patterns-1 | Total | ||
5 | 3 | 18 | 2,1 | 1 | ||
6 | Total 18 | 1 | ||||
7 | 21 | 2,1 | 1 | |||
8 | Total 21 | 1 | ||||
9 | 30 | 1,1,1 | 2 | |||
10 | 1,2 | 1 | ||||
11 | Total 30 | 3 | ||||
12 | 36 | 1,1,1 | 1 | |||
13 | 1,2 | 1 | ||||
14 | 2,1 | 1 | ||||
15 | Total 36 | 3 | ||||
16 | Total 3 | 8 | ||||
17 | 4 | 28 | 3,1 | 1 | ||
18 | Total 28 | 1 | ||||
19 | 67 | 1,1,1,1 | 4 | |||
20 | 1,1,2 | 2 | ||||
21 | 1,2,1 | 2 | ||||
22 | 2,1,1 | 5 | ||||
23 | 3,1 | 1 | ||||
24 | Total 67 | 14 | ||||
25 | Total 4 | 15 | ||||
26 | 5 | 50 | 2,1,2 | 1 | ||
27 | Total 50 | 1 | ||||
28 | 80 | 1,1,1,2 | 1 | |||
29 | 1,1,2,1 | 1 | ||||
30 | 1,1,3 | 1 | ||||
31 | 1,2,1,1 | 1 | ||||
32 | 1,3,1 | 1 | ||||
33 | 2,1,1,1 | 3 | ||||
34 | 2,2,1 | 1 | ||||
35 | 3,1,1 | 1 | ||||
36 | 3,2 | 1 | ||||
37 | 4,1 | 1 | ||||
38 | Total 80 | 12 | ||||
39 | Total 5 | 13 | ||||
40 | Total general | 36 | ||||
Pivot Table |
Example below the Sheet Possible Results; shows all possible result could be formed with 3 fields (Count-1, Sum-1, Patterns-1).
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ||||||
2 | ||||||
3 | Contar de Count-1 | |||||
4 | Count-1 | Sum-1 | Patterns-1 | Total | ||
5 | 3 | 18 | 1,2 | 1 | ||
6 | 3 | 18 | 2,1 | 1 | ||
7 | 3 | 21 | 3 | 1 | ||
8 | 3 | 21 | 1,1,1 | 1 | ||
9 | 3 | 21 | 2,1 | 1 | ||
10 | 3 | 30 | 3 | 1 | ||
11 | 3 | 30 | 1,1,1 | 3 | ||
12 | 3 | 30 | 1,2 | 1 | ||
13 | 3 | 30 | 2,1 | 2 | ||
14 | 3 | 36 | 1,1,1 | 5 | ||
15 | 3 | 36 | 1,2 | 2 | ||
16 | 3 | 36 | 2,1 | 3 | ||
17 | Total 3 | 22 | ||||
18 | 4 | 28 | 2,2 | 1 | ||
19 | 4 | 28 | 3,1 | 1 | ||
20 | 4 | 67 | 1,1,1,1 | 16 | ||
21 | 4 | 67 | 1,1,2 | 5 | ||
22 | 4 | 67 | 1,2,1 | 7 | ||
23 | 4 | 67 | 1,3 | 2 | ||
24 | 4 | 67 | 2,1,1 | 11 | ||
25 | 4 | 67 | 3,1 | 2 | ||
26 | 4 | 70 | 2,2 | 4 | ||
27 | 4 | 70 | 3,1 | 2 | ||
28 | 4 | 73 | 1,1,1,1 | 20 | ||
29 | 4 | 73 | 3,1 | 2 | ||
30 | Total 4 | 73 | ||||
31 | 5 | 50 | 5 | 1 | ||
32 | 5 | 50 | 1,3,1 | 1 | ||
33 | 5 | 50 | 2,1,2 | 1 | ||
34 | 5 | 50 | 2,2,1 | 1 | ||
35 | 5 | 50 | 3,1,1 | 2 | ||
36 | 5 | 50 | 4,1 | 1 | ||
37 | 5 | 80 | 5 | 1 | ||
38 | 5 | 80 | 1,1,1,1,1 | 7 | ||
39 | 5 | 80 | 1,1,1,2 | 3 | ||
40 | 5 | 80 | 1,1,2,1 | 5 | ||
41 | 5 | 80 | 1,1,3 | 2 | ||
42 | 5 | 80 | 1,2,1,1 | 9 | ||
43 | 5 | 80 | 1,2,2 | 2 | ||
44 | 5 | 80 | 1,3,1 | 5 | ||
45 | 5 | 80 | 2,1,1,1 | 12 | ||
46 | 5 | 80 | 2,1,2 | 4 | ||
47 | 5 | 80 | 2,2,1 | 6 | ||
48 | 5 | 80 | 2,3 | 1 | ||
49 | 5 | 80 | 3,1,1 | 7 | ||
50 | 5 | 80 | 3,2 | 1 | ||
51 | 5 | 80 | 4,1 | 1 | ||
52 | Total 5 | 73 | ||||
53 | Total general | 168 | ||||
Possible Results |
Here is what I need as shown in the Sheet Result Required in column F find total from; Sheet Possible Results
If 3 fields (Count-1, Sum-1, Patterns-1) criteria match as shown
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | ||||||||
2 | ||||||||
3 | Count | TT:Find In Sheet Possible Results | ||||||
4 | Count-1 | Sum-1 | Patterns-1 | Total | TT:Find In Sheet Possible Results | |||
5 | 3 | 18 | 2,1 | 1 | 1 | |||
6 | Total 18 | 1 | ||||||
7 | 21 | 2,1 | 1 | 1 | ||||
8 | Total 21 | 1 | ||||||
9 | 30 | 1,1,1 | 2 | 3 | ||||
10 | 1,2 | 1 | 1 | |||||
11 | Total 30 | 3 | ||||||
12 | 36 | 1,1,1 | 1 | 5 | ||||
13 | 1,2 | 1 | 2 | |||||
14 | 2,1 | 1 | 3 | |||||
15 | Total 36 | 3 | ||||||
16 | Total 3 | 8 | ||||||
17 | 4 | 28 | 3,1 | 1 | 1 | |||
18 | Total 28 | 1 | ||||||
19 | 67 | 1,1,1,1 | 4 | 16 | ||||
20 | 1,1,2 | 2 | 5 | |||||
21 | 1,2,1 | 2 | 7 | |||||
22 | 2,1,1 | 5 | 11 | |||||
23 | 3,1 | 1 | 2 | |||||
24 | Total 67 | 14 | ||||||
25 | Total 4 | 15 | ||||||
26 | 5 | 50 | 2,1,2 | 1 | 1 | |||
27 | Total 50 | 1 | ||||||
28 | 80 | 1,1,1,2 | 1 | 3 | ||||
29 | 1,1,2,1 | 1 | 5 | |||||
30 | 1,1,3 | 1 | 2 | |||||
31 | 1,2,1,1 | 1 | 9 | |||||
32 | 1,3,1 | 1 | 5 | |||||
33 | 2,1,1,1 | 3 | 12 | |||||
34 | 2,2,1 | 1 | 6 | |||||
35 | 3,1,1 | 1 | 7 | |||||
36 | 3,2 | 1 | 1 | |||||
37 | 4,1 | 1 | 1 | |||||
38 | Total 80 | 12 | ||||||
39 | Total 5 | 13 | ||||||
40 | Total general | 36 | ||||||
Result Required |
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B5 = 18… Patterns-1, C5 = 2,1) look in to Sheet Possible Results if criteria match show total in column F5
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B7 = 21… Patterns-1, C7 = 2,1) look in to Sheet Possible Results if criteria match show total in column F7
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B9 = 30… Patterns-1, C9 = 1,1,1) look in to Sheet Possible Results if criteria match show total in column F9
Example Sheet Pivot Table; 3 fields (Count-1, A5 = 3… Sum-1, B9 = 30… Patterns-1, C10 = 1,2) look in to Sheet Possible Results if criteria match show total in column F10
Note; pivot table change every time data is filled in source sheet so I think VBA solution will be work great
It is just my thought.
I am using excel version 2000
Thank you in advance.
Regards,
Moti