LearnVBA83
Board Regular
- Joined
- Dec 1, 2016
- Messages
- 113
- Office Version
- 365
- Platform
- Windows
Hi there! I Know i could use a sumif or sumifs function, but i'm trying to learn the ins and outs of the Xlookup and how it spills. In the below scenario (mini-sheet). How would i use an Xlookup to find/spill all of the values for January Sales? When i try the Xlookup it only finds the first value. I would ultimately want to sum the return of all January Sales. I've tried several variations such as this =SUM(XLOOKUP($A$2,$A$2:$A$193,F2:F193)) but it seems like it only wants to return the first match. I was under the impression the XLookup would find all of the January Sales matches. Any help would be great!
Master Excel Guide.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Month | Year | Region | Product | Description | Sales | ||
2 | January | 2021 | North | Product A | Head-Ache | 166,281 | ||
3 | February | 2021 | North | Product A | Head-Ache | 77,907 | ||
4 | March | 2021 | North | Product A | Head-Ache | 155,568 | ||
5 | April | 2021 | North | Product A | Head-Ache | 154,626 | ||
6 | May | 2021 | North | Product A | Head-Ache | 57,510 | ||
7 | June | 2021 | North | Product A | Head-Ache | 70,559 | ||
8 | July | 2021 | North | Product A | Head-Ache | 127,324 | ||
9 | August | 2021 | North | Product A | Head-Ache | 57,560 | ||
10 | September | 2021 | North | Product A | Head-Ache | 57,738 | ||
11 | October | 2021 | North | Product A | Head-Ache | 121,767 | ||
12 | November | 2021 | North | Product A | Head-Ache | 71,101 | ||
13 | December | 2021 | North | Product A | Head-Ache | 79,371 | ||
14 | January | 2022 | North | Product A | Head-Ache | 96,792 | ||
15 | February | 2022 | North | Product A | Head-Ache | 108,522 | ||
16 | March | 2022 | North | Product A | Head-Ache | 145,017 | ||
17 | April | 2022 | North | Product A | Head-Ache | 80,597 | ||
18 | May | 2022 | North | Product A | Head-Ache | 170,889 | ||
19 | June | 2022 | North | Product A | Head-Ache | 116,532 | ||
20 | July | 2022 | North | Product A | Head-Ache | 147,794 | ||
21 | August | 2022 | North | Product A | Head-Ache | 56,897 | ||
22 | September | 2022 | North | Product A | Head-Ache | 63,169 | ||
23 | October | 2022 | North | Product A | Head-Ache | 143,560 | ||
24 | November | 2022 | North | Product A | Head-Ache | 109,524 | ||
25 | December | 2022 | North | Product A | Head-Ache | 136,862 | ||
26 | January | 2021 | North | Product B | Flu | 86,761 | ||
27 | February | 2021 | North | Product B | Flu | 155,546 | ||
28 | March | 2021 | North | Product B | Flu | 65,236 | ||
29 | April | 2021 | North | Product B | Flu | 75,271 | ||
30 | May | 2021 | North | Product B | Flu | 160,705 | ||
31 | June | 2021 | North | Product B | Flu | 82,710 | ||
32 | July | 2021 | North | Product B | Flu | 155,690 | ||
33 | August | 2021 | North | Product B | Flu | 123,234 | ||
34 | September | 2021 | North | Product B | Flu | 149,884 | ||
35 | October | 2021 | North | Product B | Flu | 94,163 | ||
36 | November | 2021 | North | Product B | Flu | 113,598 | ||
37 | December | 2021 | North | Product B | Flu | 54,835 | ||
38 | January | 2022 | North | Product B | Flu | 80,440 | ||
39 | February | 2022 | North | Product B | Flu | 168,269 | ||
40 | March | 2022 | North | Product B | Flu | 60,338 | ||
41 | April | 2022 | North | Product B | Flu | 52,986 | ||
42 | May | 2022 | North | Product B | Flu | 150,478 | ||
43 | June | 2022 | North | Product B | Flu | 66,450 | ||
44 | July | 2022 | North | Product B | Flu | 159,796 | ||
45 | August | 2022 | North | Product B | Flu | 54,295 | ||
46 | September | 2022 | North | Product B | Flu | 153,412 | ||
47 | October | 2022 | North | Product B | Flu | 150,478 | ||
48 | November | 2022 | North | Product B | Flu | 61,865 | ||
49 | December | 2022 | North | Product B | Flu | 131,054 | ||
50 | January | 2021 | South | Product A | Head-Ache | 102,921 | ||
51 | February | 2021 | South | Product A | Head-Ache | 105,693 | ||
52 | March | 2021 | South | Product A | Head-Ache | 120,843 | ||
53 | April | 2021 | South | Product A | Head-Ache | 168,840 | ||
54 | May | 2021 | South | Product A | Head-Ache | 155,087 | ||
55 | June | 2021 | South | Product A | Head-Ache | 136,161 | ||
56 | July | 2021 | South | Product A | Head-Ache | 152,025 | ||
57 | August | 2021 | South | Product A | Head-Ache | 169,731 | ||
58 | September | 2021 | South | Product A | Head-Ache | 78,028 | ||
59 | October | 2021 | South | Product A | Head-Ache | 101,865 | ||
60 | November | 2021 | South | Product A | Head-Ache | 90,575 | ||
61 | December | 2021 | South | Product A | Head-Ache | 149,291 | ||
62 | January | 2022 | South | Product A | Head-Ache | 132,235 | ||
63 | February | 2022 | South | Product A | Head-Ache | 108,322 | ||
64 | March | 2022 | South | Product A | Head-Ache | 160,340 | ||
65 | April | 2022 | South | Product A | Head-Ache | 113,402 | ||
66 | May | 2022 | South | Product A | Head-Ache | 109,279 | ||
67 | June | 2022 | South | Product A | Head-Ache | 125,424 | ||
68 | July | 2022 | South | Product A | Head-Ache | 107,286 | ||
69 | August | 2022 | South | Product A | Head-Ache | 68,295 | ||
70 | September | 2022 | South | Product A | Head-Ache | 172,298 | ||
71 | October | 2022 | South | Product A | Head-Ache | 151,136 | ||
72 | November | 2022 | South | Product A | Head-Ache | 141,437 | ||
73 | December | 2022 | South | Product A | Head-Ache | 146,143 | ||
74 | January | 2021 | South | Product B | Flu | 160,801 | ||
75 | February | 2021 | South | Product B | Flu | 107,032 | ||
76 | March | 2021 | South | Product B | Flu | 66,950 | ||
77 | April | 2021 | South | Product B | Flu | 55,010 | ||
78 | May | 2021 | South | Product B | Flu | 99,000 | ||
79 | June | 2021 | South | Product B | Flu | 92,651 | ||
80 | July | 2021 | South | Product B | Flu | 129,894 | ||
81 | August | 2021 | South | Product B | Flu | 89,232 | ||
82 | September | 2021 | South | Product B | Flu | 105,532 | ||
83 | October | 2021 | South | Product B | Flu | 128,118 | ||
84 | November | 2021 | South | Product B | Flu | 90,636 | ||
85 | December | 2021 | South | Product B | Flu | 81,674 | ||
86 | January | 2022 | South | Product B | Flu | 104,677 | ||
87 | February | 2022 | South | Product B | Flu | 88,355 | ||
88 | March | 2022 | South | Product B | Flu | 153,830 | ||
89 | April | 2022 | South | Product B | Flu | 81,710 | ||
90 | May | 2022 | South | Product B | Flu | 83,990 | ||
91 | June | 2022 | South | Product B | Flu | 153,786 | ||
92 | July | 2022 | South | Product B | Flu | 128,677 | ||
93 | August | 2022 | South | Product B | Flu | 53,077 | ||
94 | September | 2022 | South | Product B | Flu | 146,294 | ||
95 | October | 2022 | South | Product B | Flu | 149,081 | ||
96 | November | 2022 | South | Product B | Flu | 112,475 | ||
97 | December | 2022 | South | Product B | Flu | 169,096 | ||
98 | January | 2021 | East | Product A | Head-Ache | 113,118 | ||
99 | February | 2021 | East | Product A | Head-Ache | 53,798 | ||
100 | March | 2021 | East | Product A | Head-Ache | 155,301 | ||
101 | April | 2021 | East | Product A | Head-Ache | 66,394 | ||
102 | May | 2021 | East | Product A | Head-Ache | 78,984 | ||
103 | June | 2021 | East | Product A | Head-Ache | 125,353 | ||
104 | July | 2021 | East | Product A | Head-Ache | 75,520 | ||
105 | August | 2021 | East | Product A | Head-Ache | 97,129 | ||
106 | September | 2021 | East | Product A | Head-Ache | 103,448 | ||
107 | October | 2021 | East | Product A | Head-Ache | 138,493 | ||
108 | November | 2021 | East | Product A | Head-Ache | 82,690 | ||
109 | December | 2021 | East | Product A | Head-Ache | 162,388 | ||
110 | January | 2022 | East | Product A | Head-Ache | 135,373 | ||
111 | February | 2022 | East | Product A | Head-Ache | 162,930 | ||
112 | March | 2022 | East | Product A | Head-Ache | 153,652 | ||
113 | April | 2022 | East | Product A | Head-Ache | 142,866 | ||
114 | May | 2022 | East | Product A | Head-Ache | 158,847 | ||
115 | June | 2022 | East | Product A | Head-Ache | 139,711 | ||
116 | July | 2022 | East | Product A | Head-Ache | 93,048 | ||
117 | August | 2022 | East | Product A | Head-Ache | 51,312 | ||
118 | September | 2022 | East | Product A | Head-Ache | 74,037 | ||
119 | October | 2022 | East | Product A | Head-Ache | 137,203 | ||
120 | November | 2022 | East | Product A | Head-Ache | 165,677 | ||
121 | December | 2022 | East | Product A | Head-Ache | 105,220 | ||
122 | January | 2021 | East | Product B | Flu | 110,730 | ||
123 | February | 2021 | East | Product B | Flu | 68,913 | ||
124 | March | 2021 | East | Product B | Flu | 112,824 | ||
125 | April | 2021 | East | Product B | Flu | 70,222 | ||
126 | May | 2021 | East | Product B | Flu | 133,682 | ||
127 | June | 2021 | East | Product B | Flu | 125,098 | ||
128 | July | 2021 | East | Product B | Flu | 64,604 | ||
129 | August | 2021 | East | Product B | Flu | 91,627 | ||
130 | September | 2021 | East | Product B | Flu | 155,395 | ||
131 | October | 2021 | East | Product B | Flu | 108,555 | ||
132 | November | 2021 | East | Product B | Flu | 81,056 | ||
133 | December | 2021 | East | Product B | Flu | 130,860 | ||
134 | January | 2022 | East | Product B | Flu | 65,310 | ||
135 | February | 2022 | East | Product B | Flu | 163,621 | ||
136 | March | 2022 | East | Product B | Flu | 94,486 | ||
137 | April | 2022 | East | Product B | Flu | 163,609 | ||
138 | May | 2022 | East | Product B | Flu | 143,568 | ||
139 | June | 2022 | East | Product B | Flu | 57,907 | ||
140 | July | 2022 | East | Product B | Flu | 170,860 | ||
141 | August | 2022 | East | Product B | Flu | 117,044 | ||
142 | September | 2022 | East | Product B | Flu | 112,059 | ||
143 | October | 2022 | East | Product B | Flu | 94,271 | ||
144 | November | 2022 | East | Product B | Flu | 136,888 | ||
145 | December | 2022 | East | Product B | Flu | 88,185 | ||
146 | January | 2021 | West | Product A | Head-Ache | 144,117 | ||
147 | February | 2021 | West | Product A | Head-Ache | 60,120 | ||
148 | March | 2021 | West | Product A | Head-Ache | 116,686 | ||
149 | April | 2021 | West | Product A | Head-Ache | 132,902 | ||
150 | May | 2021 | West | Product A | Head-Ache | 76,634 | ||
151 | June | 2021 | West | Product A | Head-Ache | 113,426 | ||
152 | July | 2021 | West | Product A | Head-Ache | 141,648 | ||
153 | August | 2021 | West | Product A | Head-Ache | 54,381 | ||
154 | September | 2021 | West | Product A | Head-Ache | 122,487 | ||
155 | October | 2021 | West | Product A | Head-Ache | 77,884 | ||
156 | November | 2021 | West | Product A | Head-Ache | 135,615 | ||
157 | December | 2021 | West | Product A | Head-Ache | 151,991 | ||
158 | January | 2022 | West | Product A | Head-Ache | 106,806 | ||
159 | February | 2022 | West | Product A | Head-Ache | 134,956 | ||
160 | March | 2022 | West | Product A | Head-Ache | 130,266 | ||
161 | April | 2022 | West | Product A | Head-Ache | 122,902 | ||
162 | May | 2022 | West | Product A | Head-Ache | 111,141 | ||
163 | June | 2022 | West | Product A | Head-Ache | 64,740 | ||
164 | July | 2022 | West | Product A | Head-Ache | 158,469 | ||
165 | August | 2022 | West | Product A | Head-Ache | 131,864 | ||
166 | September | 2022 | West | Product A | Head-Ache | 145,960 | ||
167 | October | 2022 | West | Product A | Head-Ache | 82,168 | ||
168 | November | 2022 | West | Product A | Head-Ache | 106,573 | ||
169 | December | 2022 | West | Product A | Head-Ache | 71,809 | ||
170 | January | 2021 | West | Product B | Flu | 91,532 | ||
171 | February | 2021 | West | Product B | Flu | 107,585 | ||
172 | March | 2021 | West | Product B | Flu | 165,283 | ||
173 | April | 2021 | West | Product B | Flu | 99,878 | ||
174 | May | 2021 | West | Product B | Flu | 103,766 | ||
175 | June | 2021 | West | Product B | Flu | 96,665 | ||
176 | July | 2021 | West | Product B | Flu | 167,201 | ||
177 | August | 2021 | West | Product B | Flu | 147,167 | ||
178 | September | 2021 | West | Product B | Flu | 52,725 | ||
179 | October | 2021 | West | Product B | Flu | 84,977 | ||
180 | November | 2021 | West | Product B | Flu | 93,892 | ||
181 | December | 2021 | West | Product B | Flu | 100,081 | ||
182 | January | 2022 | West | Product B | Flu | 75,418 | ||
183 | February | 2022 | West | Product B | Flu | 91,153 | ||
184 | March | 2022 | West | Product B | Flu | 90,387 | ||
185 | April | 2022 | West | Product B | Flu | 95,073 | ||
186 | May | 2022 | West | Product B | Flu | 111,194 | ||
187 | June | 2022 | West | Product B | Flu | 132,745 | ||
188 | July | 2022 | West | Product B | Flu | 127,923 | ||
189 | August | 2022 | West | Product B | Flu | 54,733 | ||
190 | September | 2022 | West | Product B | Flu | 129,644 | ||
191 | October | 2022 | West | Product B | Flu | 100,368 | ||
192 | November | 2022 | West | Product B | Flu | 110,829 | ||
193 | December | 2022 | West | Product B | Flu | 125,074 | ||
Data |