Adding Multiple Columns and Multiple Rows - Using specific criteria

gamingguy

New Member
Joined
Jun 21, 2019
Messages
2
Hi Guys

Just curious if someone knew had to do a complicated "sumif" calculation where you take the criteria in a list from the columns and the rows. What I am trying to do is add up all the quarters in a specific year (say in this case 2018) and add only 2018's quarters along with the information for Variable 2. I would like to repeat this for years etc so eventually I get a small table that has the summation of years, and one row for each variable.

IS that possible in excel?






<tbody>
2017
201720172017201820182018201820192019
20192019

2017.Q12017.Q2
2017.Q32017.Q42018.Q12018.Q22018.Q32018.Q42019.Q12019.Q22019.Q32019.Q4
Variable 1
Variable 1
59
97 5
Variable 1 117 80 139 239 185 180 173 175 178 175 175 425
Variable 2 418 125 283 62 117 245 99 149 80
Variable 2 12 30 18 5 3
Variable 2 176 315 284 142 176 91
Variable 2 108 396 50 62 10
Variable 2 124 428 72 186 76 51 128 18 64 96 44
Variable 2 55 25 30 21 6 14 7 10 15 6
Variable 2 85
Variable 2 28
Variable 2 6 16
Variable 3 5 4
Variable 3 15
Variable 3 8 29 73 22
Variable 3 4
Variable 3 680 596 1,260 990 812 967 893
Variable 3 340 344 731 812 601 456 1,202 740 517 274 823
Variable 3 268 352 310 502 209 21 22 71 2 47 58 33

<colgroup><col><col><col><col span="6"><col span="4"></colgroup><tbody>
</tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
SUMIFS or SUMPRODUCT should be able to achieve this, can you post some sample data so we can come up with a solution for you.
 
Upvote 0
SUMIFS or SUMPRODUCT should be able to achieve this, can you post some sample data so we can come up with a solution for you.


Looks like the data didn't come through. Here is the chart.

ACTUALACTUALACTUALACTUALACTUALACTUALACTUALACTUAL
20172017201720172018201820182018

2017.Q1
2017.Q22017.Q32017.Q42018.Q12018.Q22018.Q32018.Q4
Variable 1
Variable 1 59 97 5
Variable 1 117 80 139 239 185 180 173 175
Variable 2 418 125 283 62 117 245
Variable 2 12
Variable 2 176 315

<colgroup><col><col><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
Hi Gamingguy,

Is this what you need?


Book1
ABCDEFGHI
1ACTUALACTUALACTUALACTUALACTUALACTUALACTUALACTUAL
220172017201720172018201820182018
32017.Q12017.Q22017.Q32017.Q42018.Q12018.Q22018.Q32018.Q4
4Variable 1
5Variable 159975
6Variable 111780139239185180173175
7Variable 241812528362117245
8Variable 212
9Variable 2176315
10
11
1220172018
13Variable 1731718
14Variable 2826927
Sheet1
Cell Formulas
RangeFormula
B13=SUMPRODUCT(($A$4:$A$9=$A13)*($B$2:$I$2=B$12)*$B$4:$I$9)
C13=SUMPRODUCT(($A$4:$A$9=$A13)*($B$2:$I$2=C$12)*$B$4:$I$9)
 
Upvote 0

Forum statistics

Threads
1,214,412
Messages
6,119,369
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top